#include <CString.h>
Public Methods | |
| void | MakeLower () |
| void | MakeUpper () |
| CString_ () | |
| Constructed an empty CString. More... | |
| CString_ (const char *psz) | |
| Constructs a CString from a PSZ. More... | |
| CString_ (const unsigned char *psz) | |
| Constructs a CString from a PSZ. More... | |
| CString_ (const CString_ &stringSrc) | |
| Copy constructor. More... | |
| CString_ (const char *psz, const size_t siz) | |
| Constructs a CString from a potentially unterminated string. More... | |
| CString_ (const unsigned char *psz, const size_t siz) | |
| Constructs a CString from a potentially unterminated string. More... | |
| const CString_& | operator= (const CString_ &stringSrc) |
| Assignment operator. More... | |
| const CString_& | operator= (const char *psz) |
| Assignment operator. More... | |
| const CString_& | operator= (const unsigned char *psz) |
| Assignment operator. More... | |
| ~CString_ () | |
| Destructor. More... | |
| void | Empty () |
| Reset the CString to an empty one. More... | |
| const CString_& | operator+= (const CString_ &string) |
| Concatenate two strings. More... | |
| const CString_& | operator+= (char ch) |
| Concatenate a string and a character. More... | |
| const CString_& | operator+= (const char *psz) |
| Concatenate two strings. More... | |
| operator const char * () const | |
| return as a normal 'c' string. More... | |
| void | Format (const char *fmt,...) |
| int | CompareNoCase (const CString_ &string) const |
| Compare two strings ignoring upper and lower case. More... | |
| int | Compare (const CString_ &string) const |
| Compare two strings. More... | |
| int | GetLength () const |
| Return the length of the CString. More... | |
| bool | IsEmpty () |
| Return if the CString is empty. More... | |
| char | GetAt (int p) |
| Return the character at the specified position. More... | |
| void | SetAt (int p, char ch) |
| Set the character at the specified position. More... | |
| CString_ | Mid (int nFirst, int nCount=-1) const |
| int | Find (int ch, int startAt=0) const |
| Return the offset of the character in the CString or -1. More... | |
| int | Find (const char *str, int startAt=0) const |
| Return the offset of the string in the CString or -1. More... | |
| int | ReverseFind (int ch) const |
| Return the offset of the last character in the CString or -1. More... | |
| CString_ | Left (int nCount) const |
| Returns the leftmost nCount characters from a CString. More... | |
| CString_ | Right (int nCount) const |
| Returns the rightmost nCount characters from a CString. More... | |
Private Attributes | |
| char* | s |
| Points to the actual string data. More... | |
| size_t | l |
| The current length of the string. More... | |
| size_t | r |
| The amount of memory currently allocated. More... | |
Friends | |
| class | CString_support |
| CString_ | operator+ (const CString_ &string, const char *lpsz) |
| Concatenate two strings. More... | |
|
|
Constructed an empty CString.
|
|
|
Constructs a CString from a PSZ.
|
|
|
Constructs a CString from a PSZ.
|
|
|
Copy constructor.
|
|
|
Constructs a CString from a potentially unterminated string.
|
|
|
Constructs a CString from a potentially unterminated string.
|
|
|
Destructor.
|
|
|
Compare two strings.
|
|
|
Compare two strings ignoring upper and lower case.
|
|
|
Reset the CString to an empty one.
|
|
|
Return the offset of the string in the CString or -1.
|
|
|
Return the offset of the character in the CString or -1.
|
|
|
Return the character at the specified position.
|
|
|
Return the length of the CString.
|
|
|
Return if the CString is empty.
|
|
|
Returns the leftmost nCount characters from a CString.
|
|
|
Return the offset of the last character in the CString or -1.
|
|
|
Returns the rightmost nCount characters from a CString.
|
|
|
Set the character at the specified position.
|
|
|
return as a normal 'c' string.
|
|
|
Concatenate two strings.
|
|
|
Concatenate a string and a character.
|
|
|
Concatenate two strings.
|
|
|
Assignment operator.
|
|
|
Assignment operator.
|
|
|
Assignment operator.
|
|
|
Concatenate two strings.
|
|
|
The current length of the string.
|
|
|
The amount of memory currently allocated.
|
|
|
Points to the actual string data.
|
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001