Public Methods |
virtual uint | addError () |
virtual | ~CStr () |
char * | append (const char *pszString, uint nMaxChars=0, uint nKnownStringLength=0) |
char * | append (char nChar) |
char * | appendCRLF () |
char * | appendNumber (int nValue) |
char * | appendNumber (uint nValue) |
char * | appendNumber (long nValue) |
char * | appendNumber (ulong nValue) |
| CStr (const char *pszString, uint nMaxChars=0) |
| CStr (CStr const &str) |
| CStr () |
| operator char * () |
| operator char * () const |
char * | format (const char *pszFormat,...) |
CStr & | operator= (CStr const &s) |
CStr & | operator= (const char *pszString) |
CStr & | operator= (int iValue) |
CStr & | operator= (uint nValue) |
char * | operator+= (const char *pszString) |
char * | operator<< (const char *pszString) |
char * | operator+= (char nChar) |
char * | operator<< (char nChar) |
char * | operator+= (int nValue) |
char * | operator<< (int nValue) |
char * | operator+= (uint nValue) |
char * | operator<< (uint nValue) |
bool | operator== (int nValue) const |
bool | operator== (uint nValue) const |
bool | operator== (const char *pszString) const |
bool | operator!= (const char *pszString) const |
bool | isEmpty () const |
bool | isNotEmpty () const |
uint | getCharCount (char nChar) const |
char & | charAt (uint nIndex) const |
void | charAt (uint nIndex, char nChar) |
int | compare (const char *pszString) const |
int | compareNoCase (const char *pszString) const |
int | find (const char *pszSubString) const |
int | find (char nChar) const |
CStr | left (uint nCount) const |
CStr | mid (uint nFirst, uint nCount=0) const |
CStr | right (uint nCount) const |
char * | trimRight () |
char * | trimLeft () |
char * | trim () |
char * | makeLower () |
char * | makeUpper () |
uint | getLength (bool bBuffer=false) const |
uint | strlen () |
void | endWith (char nChar) |
char * | empty (bool bFreeBuffer=true, bool bResetErrorCount=true) |
char * | removeSection (uint nFirst, uint nRemoveCount=1) |
char * | replaceBuffer (char *pszString, uint nAllocatedMemorySize, uint nKnownStringLength=0) |
char * | replaceBuffer (CStr &strFrom) |
char * | replaceCharacters (char nFind, char nReplacement) |
char * | replaceFirstChar (char nChar, char nReplacement='\0') |
char * | replaceLastChar (char nChar, char nReplacement='\0') |
uint | getErrorCount () const |
uint & | getGranularity () const |
char * | stealBuffer () |
char * | String () const |
char * | String (const char *pszString, uint nExtraBytes=0, uint nMaxChars=0, uint nKnownStringLength=0) |
char * | String (int nValue) |
char * | String (uint nValue) |
char * | String (long nValue) |
char * | String (ulong nValue) |
void | updateLength (uint nLength=0) |
Protected Methods |
CStr * | duplicateOverlap (const char *pszString, bool &bDuplicateRequired) |
void | init (CStr const *pExisting=NULL) |
char * | replaceFirstOrLastChar (char nChar, char nReplacement, bool bFirst) |
Protected Attributes |
char * | m_pszString |
uint | m_nLength |
uint | m_nAllocLength |
uint | m_nGranularity |
uint | m_nErrorCount |