csString Class Reference
This is a string class with a range of useful operators and type-safe overloads. More...
#include <csutil/csstring.h>
Public Member Functions | |
void | SetCapacity (size_t NewSize) |
Advise the string that it should allocate enough space to hold up to NewSize characters. | |
size_t | GetCapacity () const |
Return the current capacity. | |
void | SetGrowsBy (size_t) |
Advise the string that it should grow by approximately this many bytes when more space is required. | |
size_t | GetGrowsBy () const |
Return the number of bytes by which the string grows. | |
void | SetGrowsExponentially (bool b) |
Tell the string to re-size its buffer exponentially as needed. | |
bool | GetGrowsExponentially () const |
Returns true if exponential growth is enabled. | |
void | Free () |
Free the memory allocated for the string. | |
csString & | Truncate (size_t Len) |
Truncate the string. | |
csString & | Reclaim () |
Set string buffer capacity to hold exactly the current content. | |
csString & | Clear () |
Clear the string (so that it contains only a null terminator). | |
char * | GetData () |
Get a pointer to the null-terminated character array. | |
char const * | GetData () const |
Get a pointer to the null-terminated character array. | |
char const * | GetDataSafe () const |
Get a pointer to the null-terminated character array. | |
size_t | Length () const |
Query string length. | |
bool | IsEmpty () const |
Check if string is empty. | |
char & | operator[] (size_t n) |
Get a modifiable reference to n'th character. | |
char | operator[] (size_t n) const |
Get n'th character. | |
void | SetAt (size_t n, const char c) |
Set the n'th character. | |
char | GetAt (size_t n) const |
Get the n'th character. | |
csString & | DeleteAt (size_t Pos, size_t Count=1) |
Delete a range of characters from the string. | |
csString & | Insert (size_t Pos, const csString &Str) |
Insert another string into this one. | |
csString & | Insert (size_t Pos, const char *Str) |
Insert another string into this one. | |
csString & | Insert (size_t Pos, char C) |
Insert another string into this one. | |
csString & | Overwrite (size_t Pos, const csString &Str) |
Overlay another string onto a part of this string. | |
csString & | Append (const char *Str, size_t Count=(size_t)-1) |
Append a null-terminated C-string to this one. | |
csString & | Append (const csString &Str, size_t Count=(size_t)-1) |
Append a string to this one. | |
csString & | Append (char c) |
Append a signed character to this string. | |
csString & | Append (unsigned char c) |
Append an unsigned character to this string. | |
csString | Slice (size_t start, size_t len) const |
Copy and return a portion of this string. | |
void | SubString (csString &sub, size_t start, size_t len) const |
Copy a portion of this string. | |
size_t | FindFirst (char c, size_t pos=0) const |
Find the first occurrence of a character in the string. | |
size_t | FindFirst (const char *c, size_t pos=0) const |
Find the first occurrence of any of a set of characters in the string. | |
size_t | FindLast (char c, size_t pos=(size_t)-1) const |
Find the last occurrence of a character in the string. | |
size_t | FindStr (const char *str, size_t pos=0) const |
Find the occurrence of a substring in the string. | |
void | FindReplace (const char *str, const char *replaceWith) |
Find the occurrence of a substring in the string and replace it with another string. | |
csString & | Append (bool b) |
Append a boolean (as a number -- 1 or 0) to this string. | |
csString & | Replace (const csString &Str, size_t Count=(size_t)-1) |
Replace contents of this string with the contents of another. | |
csString & | Replace (const char *Str, size_t Count=(size_t)-1) |
Replace contents of this string with the contents of another. | |
bool | Compare (const csString &iStr) const |
Check if another string is equal to this one. | |
bool | Compare (const char *iStr) const |
Check if a null-terminated C- string is equal to this string. | |
bool | CompareNoCase (const csString &iStr) const |
Check if another string is equal to this one. | |
bool | CompareNoCase (const char *iStr) const |
Check if a null-terminated C- string is equal to this string. | |
bool | StartsWith (const csString &iStr, bool ignore_case=false) const |
Check if this string starts with another one. | |
bool | StartsWith (const char *iStr, bool ignore_case=false) const |
Check if this string starts with a null-terminated C- string. | |
csString () | |
Create an empty csString object. | |
csString (size_t Length) | |
Create a csString object and reserve space for at least Length characters. | |
csString (const csString ©) | |
Copy constructor. | |
csString (const char *src) | |
Create a csString object from a null-terminated C string. | |
csString (char c) | |
Create a csString object from a single signed character. | |
csString (unsigned char c) | |
Create a csString object from a single unsigned character. | |
virtual | ~csString () |
Destroy the csString. | |
csString | Clone () const |
Get a copy of this string. | |
csString & | LTrim () |
Trim leading whitespace. | |
csString & | RTrim () |
Trim trailing whitespace. | |
csString & | Trim () |
Trim leading and trailing whitespace. | |
csString & | Collapse () |
Trim leading and trailing whitespace, and collapse all internal whitespace to a single space. | |
csString & | Format (const char *format,...) |
Format this string using sprintf()-style formatting directives. | |
csString & | FormatV (const char *format, va_list args) |
Format this string using sprintf() formatting directives in a va_list. | |
csString & | PadLeft (size_t NewSize, char PadChar= ' ') |
Pad to a specified size with leading characters. | |
csString | AsPadLeft (size_t NewSize, char PadChar= ' ') const |
Return a copy of this string formatted with PadLeft(). | |
csString & | PadRight (size_t NewSize, char PadChar= ' ') |
Pad to a specified size with trailing characters. | |
csString | AsPadRight (size_t NewSize, char PadChar= ' ') const |
Return a copy of this string formatted with PadRight(). | |
csString & | PadCenter (size_t NewSize, char PadChar= ' ') |
Pad to a specified size with leading and trailing characters so as to center the string. | |
csString | AsPadCenter (size_t NewSize, char PadChar= ' ') const |
Return a copy of this string formatted with PadCenter(). | |
csString | operator+ (const csString &iStr) const |
Add another string to this one and return the result as a new string. | |
operator const char * () const | |
Get a pointer to the null-terminated character array. | |
bool | operator== (const csString &Str) const |
Check if another string is equal to this one. | |
bool | operator== (const char *Str) const |
Check if another string is equal to this one. | |
bool | operator< (const csString &Str) const |
Check if another string is less than this one. | |
bool | operator< (const char *Str) const |
Check if another string is less than this one. | |
bool | operator> (const csString &Str) const |
Check to see if a string is greater than this one. | |
bool | operator> (const char *Str) const |
Check to see if a string is greater than this one. | |
bool | operator!= (const csString &Str) const |
Check if another string is not equal to this one. | |
bool | operator!= (const char *Str) const |
Check if another string is not equal to this one. | |
csString & | Downcase () |
Convert this string to lower-case. | |
csString & | Upcase () |
Convert this string to upper-case. | |
char * | Detach () |
Detach the low-level null-terminated C-string buffer from the csString object. | |
csString & | Append (short n) |
Append the value, in formatted form, to this string. | |
csString & | Append (unsigned short n) |
Append the value, in formatted form, to this string. | |
csString & | Append (int n) |
Append the value, in formatted form, to this string. | |
csString & | Append (unsigned int n) |
Append the value, in formatted form, to this string. | |
csString & | Append (long n) |
Append the value, in formatted form, to this string. | |
csString & | Append (unsigned long n) |
Append the value, in formatted form, to this string. | |
csString & | Append (float n) |
Append the value, in formatted form, to this string. | |
csString & | Append (double n) |
Append the value, in formatted form, to this string. | |
csString & | Replace (char s) |
Replace contents of this string with the value in formatted form. | |
csString & | Replace (unsigned char s) |
Replace contents of this string with the value in formatted form. | |
csString & | Replace (short s) |
Replace contents of this string with the value in formatted form. | |
csString & | Replace (unsigned short s) |
Replace contents of this string with the value in formatted form. | |
csString & | Replace (int s) |
Replace contents of this string with the value in formatted form. | |
csString & | Replace (unsigned int s) |
Replace contents of this string with the value in formatted form. | |
csString & | Replace (long s) |
Replace contents of this string with the value in formatted form. | |
csString & | Replace (unsigned long s) |
Replace contents of this string with the value in formatted form. | |
csString & | Replace (float s) |
Replace contents of this string with the value in formatted form. | |
csString & | Replace (double s) |
Replace contents of this string with the value in formatted form. | |
csString & | Replace (bool s) |
Replace contents of this string with the value in formatted form. | |
const csString & | operator= (const csString &s) |
Assign a formatted value to this string. | |
const csString & | operator= (const char *s) |
Assign a formatted value to this string. | |
const csString & | operator= (char s) |
Assign a formatted value to this string. | |
const csString & | operator= (unsigned char s) |
Assign a formatted value to this string. | |
const csString & | operator= (short s) |
Assign a formatted value to this string. | |
const csString & | operator= (unsigned short s) |
Assign a formatted value to this string. | |
const csString & | operator= (int s) |
Assign a formatted value to this string. | |
const csString & | operator= (unsigned int s) |
Assign a formatted value to this string. | |
const csString & | operator= (long s) |
Assign a formatted value to this string. | |
const csString & | operator= (unsigned long s) |
Assign a formatted value to this string. | |
const csString & | operator= (float s) |
Assign a formatted value to this string. | |
const csString & | operator= (double s) |
Assign a formatted value to this string. | |
const csString & | operator= (bool s) |
Assign a formatted value to this string. | |
csString & | operator+= (const csString &s) |
Append a formatted value to this string. | |
csString & | operator+= (const char *s) |
Append a formatted value to this string. | |
csString & | operator+= (char s) |
Append a formatted value to this string. | |
csString & | operator+= (unsigned char s) |
Append a formatted value to this string. | |
csString & | operator+= (short s) |
Append a formatted value to this string. | |
csString & | operator+= (unsigned short s) |
Append a formatted value to this string. | |
csString & | operator+= (int s) |
Append a formatted value to this string. | |
csString & | operator+= (unsigned int s) |
Append a formatted value to this string. | |
csString & | operator+= (long s) |
Append a formatted value to this string. | |
csString & | operator+= (unsigned long s) |
Append a formatted value to this string. | |
csString & | operator+= (float s) |
Append a formatted value to this string. | |
csString & | operator+= (double s) |
Append a formatted value to this string. | |
csString & | operator+= (bool s) |
Append a formatted value to this string. | |
Static Public Member Functions | |
csString | Format (short v) |
Format this value using a sprintf() formatting directive. | |
csString | Format (unsigned short v) |
Format this value using a sprintf() formatting directive. | |
csString | Format (int v) |
Format this value using a sprintf() formatting directive. | |
csString | Format (unsigned int v) |
Format this value using a sprintf() formatting directive. | |
csString | Format (long v) |
Format this value using a sprintf() formatting directive. | |
csString | Format (unsigned long v) |
Format this value using a sprintf() formatting directive. | |
csString | Format (float v) |
Format this value using a sprintf() formatting directive. | |
csString | Format (double v) |
Format this value using a sprintf() formatting directive. | |
csString | Format (short v, int width, int prec=0) |
Format this value using a sprintf() formatting directive. | |
csString | Format (unsigned short v, int width, int prec=0) |
Format this value using a sprintf() formatting directive. | |
csString | Format (int v, int width, int prec=0) |
Format this value using a sprintf() formatting directive. | |
csString | Format (unsigned int v, int width, int prec=0) |
Format this value using a sprintf() formatting directive. | |
csString | Format (long v, int width, int prec=0) |
Format this value using a sprintf() formatting directive. | |
csString | Format (unsigned long v, int width, int prec=0) |
Format this value using a sprintf() formatting directive. | |
csString | Format (float v, int width, int prec=6) |
Format this value using a sprintf() formatting directive. | |
csString | Format (double v, int width, int prec=6) |
Format this value using a sprintf() formatting directive. | |
csString | PadLeft (const csString &v, size_t iNewSize, char iChar=' ') |
Return a new left-padded string representation of a basic type. | |
csString | PadLeft (const char *v, size_t iNewSize, char iChar=' ') |
Return a new left-padded string representation of a basic type. | |
csString | PadLeft (char v, size_t iNewSize, char iChar=' ') |
Return a new left-padded string representation of a basic type. | |
csString | PadLeft (unsigned char v, size_t iNewSize, char iChar=' ') |
Return a new left-padded string representation of a basic type. | |
csString | PadLeft (short v, size_t iNewSize, char iChar=' ') |
Return a new left-padded string representation of a basic type. | |
csString | PadLeft (unsigned short v, size_t iNewSize, char iChar=' ') |
Return a new left-padded string representation of a basic type. | |
csString | PadLeft (int v, size_t iNewSize, char iChar=' ') |
Return a new left-padded string representation of a basic type. | |
csString | PadLeft (unsigned int v, size_t iNewSize, char iChar=' ') |
Return a new left-padded string representation of a basic type. | |
csString | PadLeft (long v, size_t iNewSize, char iChar=' ') |
Return a new left-padded string representation of a basic type. | |
csString | PadLeft (unsigned long v, size_t iNewSize, char iChar=' ') |
Return a new left-padded string representation of a basic type. | |
csString | PadLeft (float v, size_t iNewSize, char iChar=' ') |
Return a new left-padded string representation of a basic type. | |
csString | PadLeft (double v, size_t iNewSize, char iChar=' ') |
Return a new left-padded string representation of a basic type. | |
csString | PadLeft (bool v, size_t iNewSize, char iChar=' ') |
Return a new left-padded string representation of a basic type. | |
csString | PadRight (const csString &v, size_t iNewSize, char iChar=' ') |
Return a new right-padded string representation of a basic type. | |
csString | PadRight (const char *v, size_t iNewSize, char iChar=' ') |
Return a new right-padded string representation of a basic type. | |
csString | PadRight (char v, size_t iNewSize, char iChar=' ') |
Return a new right-padded string representation of a basic type. | |
csString | PadRight (unsigned char v, size_t iNewSize, char iChar=' ') |
Return a new right-padded string representation of a basic type. | |
csString | PadRight (short v, size_t iNewSize, char iChar=' ') |
Return a new right-padded string representation of a basic type. | |
csString | PadRight (unsigned short v, size_t iNewSize, char iChar=' ') |
Return a new right-padded string representation of a basic type. | |
csString | PadRight (int v, size_t iNewSize, char iChar=' ') |
Return a new right-padded string representation of a basic type. | |
csString | PadRight (unsigned int v, size_t iNewSize, char iChar=' ') |
Return a new right-padded string representation of a basic type. | |
csString | PadRight (long v, size_t iNewSize, char iChar=' ') |
Return a new right-padded string representation of a basic type. | |
csString | PadRight (unsigned long v, size_t iNewSize, char iChar=' ') |
Return a new right-padded string representation of a basic type. | |
csString | PadRight (float v, size_t iNewSize, char iChar=' ') |
Return a new right-padded string representation of a basic type. | |
csString | PadRight (double v, size_t iNewSize, char iChar=' ') |
Return a new right-padded string representation of a basic type. | |
csString | PadRight (bool v, size_t iNewSize, char iChar=' ') |
Return a new right-padded string representation of a basic type. | |
csString | PadCenter (const csString &v, size_t iNewSize, char iChar=' ') |
Return a new left+right padded string representation of a basic type. | |
csString | PadCenter (const char *v, size_t iNewSize, char iChar=' ') |
Return a new left+right padded string representation of a basic type. | |
csString | PadCenter (char v, size_t iNewSize, char iChar=' ') |
Return a new left+right padded string representation of a basic type. | |
csString | PadCenter (unsigned char v, size_t iNewSize, char iChar=' ') |
Return a new left+right padded string representation of a basic type. | |
csString | PadCenter (short v, size_t iNewSize, char iChar=' ') |
Return a new left+right padded string representation of a basic type. | |
csString | PadCenter (unsigned short v, size_t iNewSize, char iChar=' ') |
Return a new left+right padded string representation of a basic type. | |
csString | PadCenter (int v, size_t iNewSize, char iChar=' ') |
Return a new left+right padded string representation of a basic type. | |
csString | PadCenter (unsigned int v, size_t iNewSize, char iChar=' ') |
Return a new left+right padded string representation of a basic type. | |
csString | PadCenter (long v, size_t iNewSize, char iChar=' ') |
Return a new left+right padded string representation of a basic type. | |
csString | PadCenter (unsigned long v, size_t iNewSize, char iChar=' ') |
Return a new left+right padded string representation of a basic type. | |
csString | PadCenter (float v, size_t iNewSize, char iChar=' ') |
Return a new left+right padded string representation of a basic type. | |
csString | PadCenter (double v, size_t iNewSize, char iChar=' ') |
Return a new left+right padded string representation of a basic type. | |
csString | PadCenter (bool v, size_t iNewSize, char iChar=' ') |
Return a new left+right padded string representation of a basic type. | |
Protected Member Functions | |
void | Mug (csString &other) |
Move the data pointer and associated info over from other. |
Detailed Description
This is a string class with a range of useful operators and type-safe overloads.Strings may contain arbitary binary data, including null bytes. It also guarantees that a null-terminator always follows the last stored character, thus you can safely use the return value from GetData() and `operator char const*()' in calls to functions expecting C strings. The implicit null terminator is not included in the character count returned by Length().
Like a typical C character string pointer, csString can also represent a null pointer. This allows a non-string to be distinguished from an empty (zero-length) string. The csString will represent a null-pointer in the following cases:
- When constructed with no arguments (the default constructor).
- When constructed with an explicit null-pointer.
- When assigned a null-pointer via operator=((char const*)0).
- After an invocation of Replace((char const*)0).
- After invocation of csString::Free() or any method which is documented as invoking Free() as a side-effect, such as Reclaim().
- After invocation of csString::Detach().
Definition at line 55 of file csstring.h.
Constructor & Destructor Documentation
|
Create an empty csString object.
Definition at line 548 of file csstring.h. Referenced by Clone(). |
|
Create a csString object and reserve space for at least Length characters.
Definition at line 556 of file csstring.h. References SetCapacity(). |
|
Copy constructor.
Definition at line 565 of file csstring.h. References Append(). |
|
Create a csString object from a null-terminated C string.
Definition at line 574 of file csstring.h. References Append(). |
|
Create a csString object from a single signed character.
Definition at line 579 of file csstring.h. References Append(). |
|
Create a csString object from a single unsigned character.
Definition at line 584 of file csstring.h. References Append(). |
|
Destroy the csString.
|
Member Function Documentation
|
Append a boolean (as a number -- 1 or 0) to this string.
Definition at line 401 of file csstring.h. References Append(). |
|
Append the value, in formatted form, to this string.
Definition at line 396 of file csstring.h. |
|
Append the value, in formatted form, to this string.
Definition at line 395 of file csstring.h. |
|
Append the value, in formatted form, to this string.
Definition at line 394 of file csstring.h. |
|
Append the value, in formatted form, to this string.
Definition at line 393 of file csstring.h. |
|
Append the value, in formatted form, to this string.
Definition at line 392 of file csstring.h. |
|
Append the value, in formatted form, to this string.
Definition at line 391 of file csstring.h. |
|
Append the value, in formatted form, to this string.
Definition at line 390 of file csstring.h. |
|
Append the value, in formatted form, to this string.
Definition at line 389 of file csstring.h. |
|
Append an unsigned character to this string.
Definition at line 321 of file csstring.h. References Append(). |
|
Append a signed character to this string.
Definition at line 314 of file csstring.h. References Append(). |
|
Append a string to this one.
|
|
Append a null-terminated C-string to this one.
Referenced by Append(), csString(), operator+(), operator+(), and operator=(). |
|
Return a copy of this string formatted with PadCenter().
|
|
Return a copy of this string formatted with PadLeft().
|
|
Return a copy of this string formatted with PadRight().
|
|
Clear the string (so that it contains only a null terminator).
Definition at line 162 of file csstring.h. References Truncate(). |
|
Get a copy of this string.
Definition at line 596 of file csstring.h. References csString(). Referenced by operator+(), and operator+(). |
|
Trim leading and trailing whitespace, and collapse all internal whitespace to a single space.
|
|
Check if a null-terminated C- string is equal to this string.
Definition at line 470 of file csstring.h. |
|
Check if another string is equal to this one.
Definition at line 452 of file csstring.h. References Length(). Referenced by operator!=(), and operator==(). |
|
Check if a null-terminated C- string is equal to this string.
Definition at line 497 of file csstring.h. References csStrNCaseCmp(). |
|
Check if another string is equal to this one.
Definition at line 479 of file csstring.h. References csStrNCaseCmp(), GetData(), and Length(). |
|
Delete a range of characters from the string.
|
|
Detach the low-level null-terminated C-string buffer from the csString object.
Definition at line 940 of file csstring.h. |
|
Convert this string to lower-case.
|
|
Find the first occurrence of any of a set of characters in the string.
|
|
Find the first occurrence of a character in the string.
|
|
Find the last occurrence of a character in the string.
|
|
Find the occurrence of a substring in the string and replace it with another string.
|
|
Find the occurrence of a substring in the string.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this value using a sprintf() formatting directive.
|
|
Format this string using sprintf()-style formatting directives.
|
|
Format this string using sprintf() formatting directives in a va_list.
Referenced by csDebugImageWriter::DebugImageWrite(). |
|
Free the memory allocated for the string.
|
|
Get the n'th character.
Definition at line 244 of file csstring.h. |
|
Return the current capacity.
Definition at line 92 of file csstring.h. |
|
Get a pointer to the null-terminated character array.
Definition at line 186 of file csstring.h. |
|
Get a pointer to the null-terminated character array.
Definition at line 176 of file csstring.h. Referenced by CompareNoCase(), csDebugImageWriter::DebugImageWrite(), and StartsWith(). |
|
Get a pointer to the null-terminated character array.
Definition at line 198 of file csstring.h. Referenced by operator<(), and operator>(). |
|
Return the number of bytes by which the string grows.
Definition at line 105 of file csstring.h. |
|
Returns true if exponential growth is enabled.
Definition at line 116 of file csstring.h. |
|
Insert another string into this one.
|
|
Insert another string into this one.
|
|
Insert another string into this one.
|
|
Check if string is empty.
Definition at line 214 of file csstring.h. |
|
Query string length.
Definition at line 206 of file csstring.h. Referenced by Compare(), CompareNoCase(), and StartsWith(). |
|
Trim leading whitespace.
|
|
Move the data pointer and associated info over from other.
|
|
Get a pointer to the null-terminated character array.
Definition at line 843 of file csstring.h. |
|
Check if another string is not equal to this one.
Definition at line 916 of file csstring.h. References Compare(). |
|
Check if another string is not equal to this one.
Definition at line 908 of file csstring.h. References Compare(). |
|
Add another string to this one and return the result as a new string.
Definition at line 833 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 828 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 827 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 826 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 825 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 824 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 823 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 822 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 821 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 820 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 819 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 818 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 817 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 816 of file csstring.h. |
|
Check if another string is less than this one.
Definition at line 878 of file csstring.h. References GetDataSafe(). |
|
Check if another string is less than this one.
Definition at line 868 of file csstring.h. References GetDataSafe(). |
|
Assign a formatted value to this string.
Definition at line 806 of file csstring.h. References Append(). |
|
Assign a formatted value to this string.
Definition at line 805 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 804 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 803 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 802 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 801 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 800 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 799 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 798 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 797 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 796 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 795 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 794 of file csstring.h. |
|
Check if another string is equal to this one.
Definition at line 860 of file csstring.h. References Compare(). |
|
Check if another string is equal to this one.
Definition at line 852 of file csstring.h. References Compare(). |
|
Check to see if a string is greater than this one.
Definition at line 898 of file csstring.h. References GetDataSafe(). |
|
Check to see if a string is greater than this one.
Definition at line 888 of file csstring.h. References GetDataSafe(). |
|
Get n'th character.
Definition at line 225 of file csstring.h. |
|
Get a modifiable reference to n'th character.
Definition at line 218 of file csstring.h. |
|
Overlay another string onto a part of this string.
|
|
Return a new left+right padded string representation of a basic type.
|
|
Return a new left+right padded string representation of a basic type.
|
|
Return a new left+right padded string representation of a basic type.
|
|
Return a new left+right padded string representation of a basic type.
|
|
Return a new left+right padded string representation of a basic type.
|
|
Return a new left+right padded string representation of a basic type.
|
|
Return a new left+right padded string representation of a basic type.
|
|
Return a new left+right padded string representation of a basic type.
|
|
Return a new left+right padded string representation of a basic type.
|
|
Return a new left+right padded string representation of a basic type.
|
|
Return a new left+right padded string representation of a basic type.
|
|
Return a new left+right padded string representation of a basic type.
|
|
Return a new left+right padded string representation of a basic type.
|
|
Pad to a specified size with leading and trailing characters so as to center the string.
|
|
Return a new left-padded string representation of a basic type.
|
|
Return a new left-padded string representation of a basic type.
|
|
Return a new left-padded string representation of a basic type.
|
|
Return a new left-padded string representation of a basic type.
|
|
Return a new left-padded string representation of a basic type.
|
|
Return a new left-padded string representation of a basic type.
|
|
Return a new left-padded string representation of a basic type.
|
|
Return a new left-padded string representation of a basic type.
|
|
Return a new left-padded string representation of a basic type.
|
|
Return a new left-padded string representation of a basic type.
|
|
Return a new left-padded string representation of a basic type.
|
|
Return a new left-padded string representation of a basic type.
|
|
Return a new left-padded string representation of a basic type.
|
|
Pad to a specified size with leading characters.
|
|
Return a new right-padded string representation of a basic type.
|
|
Return a new right-padded string representation of a basic type.
|
|
Return a new right-padded string representation of a basic type.
|
|
Return a new right-padded string representation of a basic type.
|
|
Return a new right-padded string representation of a basic type.
|
|
Return a new right-padded string representation of a basic type.
|
|
Return a new right-padded string representation of a basic type.
|
|
Return a new right-padded string representation of a basic type.
|
|
Return a new right-padded string representation of a basic type.
|
|
Return a new right-padded string representation of a basic type.
|
|
Return a new right-padded string representation of a basic type.
|
|
Return a new right-padded string representation of a basic type.
|
|
Return a new right-padded string representation of a basic type.
|
|
Pad to a specified size with trailing characters.
|
|
Set string buffer capacity to hold exactly the current content.
|
|
Replace contents of this string with the value in formatted form.
Definition at line 442 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 441 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 440 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 439 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 438 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 437 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 436 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 435 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 434 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 433 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 432 of file csstring.h. |
|
Replace contents of this string with the contents of another.
|
|
Replace contents of this string with the contents of another.
|
|
Trim trailing whitespace.
|
|
Set the n'th character.
Definition at line 237 of file csstring.h. |
|
Advise the string that it should allocate enough space to hold up to NewSize characters.
Referenced by csString(). |
|
Advise the string that it should grow by approximately this many bytes when more space is required.
|
|
Tell the string to re-size its buffer exponentially as needed.
Definition at line 112 of file csstring.h. |
|
Copy and return a portion of this string.
|
|
Check if this string starts with a null-terminated C- string.
Definition at line 528 of file csstring.h. References csStrNCaseCmp(). |
|
Check if this string starts with another one.
Definition at line 506 of file csstring.h. References csStrNCaseCmp(), GetData(), and Length(). |
|
Copy a portion of this string.
|
|
Trim leading and trailing whitespace.
|
|
Truncate the string.
Referenced by Clear(). |
|
Convert this string to upper-case.
|
The documentation for this class was generated from the following file:
- csutil/csstring.h
Generated for Crystal Space by doxygen 1.3.9.1