Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::CString Class Reference

#include <elm/string/CString.h>

+ Inheritance diagram for elm::CString:

Public Member Functions

 CString (void)
 
 CString (const char *str)
 
 CString (const CString &str)
 
CStringoperator= (const CString &str)
 
int length (void) const
 
const char * chars (void) const
 
int compare (const CString &str) const
 
const char * operator& (void) const
 
bool isEmpty (void) const
 
 operator bool (void) const
 
char charAt (int index) const
 
char operator[] (int index) const
 
CString substring (int pos) const
 
String substring (int pos, int len) const
 
String concat (const CString str) const
 
String concat (const String &str) const
 
int indexOf (char chr) const
 
int indexOf (char chr, int pos) const
 
int lastIndexOf (char chr) const
 
int lastIndexOf (char chr, int pos) const
 
bool startsWith (const char *str) const
 
bool startsWith (const CString str) const
 
bool startsWith (const String &str) const
 
bool endsWith (const CString str) const
 
bool endsWith (const String &str) const
 
 operator const char * (void) const
 

Protected Attributes

const char * buf
 

Detailed Description

Wrapper around C usual string.

Constructor & Destructor Documentation

elm::CString::CString ( void  )

Referenced by startsWith(), and substring().

elm::CString::CString ( const char *  str)
elm::CString::CString ( const CString str)

Member Function Documentation

char elm::CString::charAt ( int  index) const

References buf.

Referenced by operator[]().

int elm::CString::compare ( const CString str) const
String elm::CString::concat ( const CString  str) const

References chars(), and length().

Referenced by elm::operator+().

String elm::CString::concat ( const String str) const
bool elm::CString::endsWith ( const CString  str) const

References buf, chars(), and length().

bool elm::CString::endsWith ( const String str) const
int elm::CString::indexOf ( char  chr) const

References indexOf().

Referenced by indexOf().

int elm::CString::indexOf ( char  chr,
int  pos 
) const

References buf.

bool elm::CString::isEmpty ( void  ) const

References buf.

Referenced by operator bool().

int elm::CString::lastIndexOf ( char  chr) const
int elm::CString::lastIndexOf ( char  chr,
int  pos 
) const

References buf.

elm::CString::operator bool ( void  ) const

References isEmpty().

elm::CString::operator const char * ( void  ) const

References buf.

const char* elm::CString::operator& ( void  ) const

References buf.

CString& elm::CString::operator= ( const CString str)

References buf.

char elm::CString::operator[] ( int  index) const

References charAt().

bool elm::CString::startsWith ( const char *  str) const

References CString().

bool elm::CString::startsWith ( const CString  str) const

References buf, chars(), and length().

bool elm::CString::startsWith ( const String str) const
CString elm::CString::substring ( int  pos) const

References buf, and CString().

Referenced by elm::_unqualify().

String elm::CString::substring ( int  pos,
int  len 
) const

References buf.

Member Data Documentation


The documentation for this class was generated from the following files: