csString Class Reference
This is a string class with a range of useful operators and type-safe overloads. More...
#include <csstring.h>
Public Methods | |
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 const * | GetData () const |
Get a pointer to the null-terminated character array. | |
char * | GetData () |
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 p=0) const |
Find the first occurrence of a character in the string. | |
size_t | FindLast (char c, size_t p=(size_t)-1) const |
Find the last occurrence of a character in the 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. | |
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 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 Methods | |
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. |
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 54 of file csstring.h.
Constructor & Destructor Documentation
|
Create an empty csString object.
Definition at line 481 of file csstring.h. |
|
Create a csString object and reserve space for at least Length characters.
Definition at line 489 of file csstring.h. |
|
Copy constructor.
Definition at line 498 of file csstring.h. |
|
Create a csString object from a null-terminated C string.
Definition at line 507 of file csstring.h. |
|
Create a csString object from a single signed character.
Definition at line 512 of file csstring.h. |
|
Create a csString object from a single unsigned character.
Definition at line 517 of file csstring.h. |
|
Destroy the csString.
|
Member Function Documentation
|
Append a boolean (as a number -- 1 or 0) to this string.
Definition at line 375 of file csstring.h. |
|
Append the value, in formatted form, to this string.
Definition at line 369 of file csstring.h. |
|
Append the value, in formatted form, to this string.
Definition at line 368 of file csstring.h. |
|
Append the value, in formatted form, to this string.
Definition at line 367 of file csstring.h. |
|
Append the value, in formatted form, to this string.
Definition at line 366 of file csstring.h. |
|
Append the value, in formatted form, to this string.
Definition at line 365 of file csstring.h. |
|
Append the value, in formatted form, to this string.
Definition at line 364 of file csstring.h. |
|
Append the value, in formatted form, to this string.
Definition at line 363 of file csstring.h. |
|
Append the value, in formatted form, to this string.
Definition at line 362 of file csstring.h. |
|
Append an unsigned character to this string.
Definition at line 316 of file csstring.h. |
|
Append a signed character to this string.
Definition at line 309 of file csstring.h. |
|
Append a string to this one.
|
|
Append a null-terminated C-string to this one.
Referenced by 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 159 of file csstring.h. |
|
Get a copy of this string.
Definition at line 529 of file csstring.h. Referenced by 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 447 of file csstring.h. |
|
Check if another string is equal to this one.
Definition at line 429 of file csstring.h. |
|
Check if a null-terminated C- string is equal to this string.
Definition at line 474 of file csstring.h. |
|
Check if another string is equal to this one.
Definition at line 456 of file csstring.h. |
|
Delete a range of characters from the string.
|
|
Detach the low-level null-terminated C-string buffer from the csString object.
Definition at line 843 of file csstring.h. |
|
Convert this string to lower-case.
|
|
Find the first occurrence of a character in the string.
|
|
Find the last occurrence of a character 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.
|
|
Free the memory allocated for the string.
|
|
Get the n'th character.
Definition at line 239 of file csstring.h. |
|
Return the current capacity.
Definition at line 89 of file csstring.h. |
|
Get a pointer to the null-terminated character array.
Definition at line 181 of file csstring.h. |
|
Get a pointer to the null-terminated character array.
Definition at line 169 of file csstring.h. Referenced by Compare(), and CompareNoCase(). |
|
Get a pointer to the null-terminated character array.
Definition at line 193 of file csstring.h. |
|
Return the number of bytes by which the string grows.
Definition at line 102 of file csstring.h. |
|
Returns true if exponential growth is enabled.
Definition at line 113 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 209 of file csstring.h. |
|
Query string length.
Definition at line 201 of file csstring.h. Referenced by Compare(), and CompareNoCase(). |
|
Trim leading whitespace.
|
|
Get a pointer to the null-terminated character array.
Definition at line 786 of file csstring.h. |
|
Check if another string is not equal to this one.
Definition at line 819 of file csstring.h. |
|
Check if another string is not equal to this one.
Definition at line 811 of file csstring.h. |
|
Add another string to this one and return the result as a new string.
Definition at line 776 of file csstring.h. References Append(). |
|
Append a formatted value to this string.
Definition at line 770 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 768 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 767 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 766 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 765 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 764 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 763 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 762 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 761 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 760 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 759 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 758 of file csstring.h. |
|
Append a formatted value to this string.
Definition at line 757 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 746 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 744 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 743 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 742 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 741 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 740 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 739 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 738 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 737 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 736 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 735 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 734 of file csstring.h. |
|
Assign a formatted value to this string.
Definition at line 733 of file csstring.h. |
|
Check if another string is equal to this one.
Definition at line 803 of file csstring.h. |
|
Check if another string is equal to this one.
Definition at line 795 of file csstring.h. |
|
Get n'th character.
Definition at line 220 of file csstring.h. |
|
Get a modifiable reference to n'th character.
Definition at line 213 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 418 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 416 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 415 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 414 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 413 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 412 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 411 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 410 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 409 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 408 of file csstring.h. |
|
Replace contents of this string with the value in formatted form.
Definition at line 407 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 232 of file csstring.h. |
|
Advise the string that it should allocate enough space to hold up to NewSize characters.
|
|
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 109 of file csstring.h. |
|
Copy and return a portion of this string.
|
|
Copy a portion of this string.
|
|
Trim leading and trailing whitespace.
|
|
Truncate the string.
|
|
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.2.18