iString Struct Reference
[Utilities]
This is a SCF-compatible interface for csString.
More...
#include <iutil/string.h>
Inheritance diagram for iString:

Public Member Functions | |
virtual void | Append (const iString *Str, size_t Count=(size_t)-1)=0 |
Append a string to this one. | |
virtual void | Append (const char *Str, size_t Count=(size_t)-1)=0 |
Append a null-terminated C-string to this one. | |
virtual void | Clear ()=0 |
Clear the string (so that it contains only a null terminator). | |
virtual csRef< iString > | Clone () const =0 |
Get a copy of this string. | |
virtual bool | Compare (const iString *Str) const =0 |
Check if another string is equal to this one. | |
virtual bool | CompareNoCase (const iString *Str) const =0 |
Check if another string is equal to this one. | |
virtual void | Downcase ()=0 |
Convert string to lowercase. | |
virtual void | Empty ()=0 |
Clear the string (so that it contains only a null terminator). | |
virtual size_t | Find (const char *search, size_t pos=0) const =0 |
Find the first occurrence of search in this string starting at pos . | |
virtual size_t | FindFirst (const char c, size_t p=(size_t)-1) const =0 |
Find the first occurrence of a character in the string. | |
virtual size_t | FindLast (const char c, size_t p=(size_t)-1) const =0 |
Find the last occurrence of a character in the string. | |
virtual void | Format (const char *format,...)=0 |
Format this string using sprintf()-style formatting directives. | |
virtual void | FormatV (const char *format, va_list args)=0 |
Format this string using sprintf() formatting directives in a va_list. | |
virtual char | GetAt (size_t n) const =0 |
Get the n'th character. | |
virtual size_t | GetCapacity () const =0 |
Return the current capacity. | |
virtual char * | GetData ()=0 |
Get a pointer to the null-terminated character array. | |
virtual char const * | GetData () const =0 |
Get a pointer to the null-terminated character array. | |
virtual size_t | GetGrowsBy () const =0 |
Return the number of bytes by which the string grows. | |
virtual void | Insert (size_t Pos, iString const *Str)=0 |
Insert another string into this one. | |
virtual bool | IsEmpty () const =0 |
Check if string is empty. | |
virtual size_t | Length () const =0 |
Query string length. | |
virtual | operator char const * () const =0 |
Get a pointer to the null-terminated character array. | |
virtual bool | operator!= (const iString &Str) const =0 |
Check if another string is not equal to this one. | |
virtual csRef< iString > | operator+ (const iString &iStr) const =0 |
Concatenate two strings and return a third one. | |
virtual void | operator+= (const char *iStr)=0 |
Append a null-terminated C-string to this string. | |
virtual void | operator+= (const iString &iStr)=0 |
Append another string to this one. | |
virtual bool | operator== (const iString &Str) const =0 |
Check if another string is equal to this one. | |
virtual char | operator[] (size_t n) const =0 |
Get n'th character. | |
virtual char & | operator[] (size_t n)=0 |
Get a modifiable reference to n'th character. | |
virtual void | Overwrite (size_t Pos, iString const *Str)=0 |
Overlay another string onto a part of this string. | |
virtual void | Reclaim ()=0 |
Set string buffer capacity to hold exactly the current content. | |
virtual void | Replace (const char *str, size_t count=(size_t)-1)=0 |
Replace contents of this string with the contents of another. | |
virtual void | Replace (const iString *str, size_t count=(size_t)-1)=0 |
Replace contents of this string with the contents of another. | |
virtual void | ReplaceAll (const char *search, const char *replacement)=0 |
Find all occurrences of search in this string and replace them with replacement . | |
virtual void | SetAt (size_t n, char iChar)=0 |
Set the n'th character. | |
virtual void | SetCapacity (size_t NewSize)=0 |
Advise the string that it should allocate enough space to hold up to NewSize characters. | |
virtual void | SetGrowsBy (size_t)=0 |
Advise the string that it should grow its allocated buffer by approximately this many bytes when more space is required. | |
virtual void | ShrinkBestFit ()=0 |
Set string buffer capacity to hold exactly the current content. | |
virtual csRef< iString > | Slice (size_t start, size_t len) const =0 |
Copy and return a portion of this string. | |
virtual void | SubString (iString *sub, size_t start, size_t len) const =0 |
Copy a portion of this string. | |
virtual void | Truncate (size_t Len)=0 |
Truncate the string. | |
virtual void | Upcase ()=0 |
Convert string to uppercase. |
Detailed Description
This is a SCF-compatible interface for csString.
Definition at line 32 of file string.h.
Member Function Documentation
|
Append a string to this one.
Implemented in scfString. |
|
Append a null-terminated C-string to this one.
Implemented in scfString. |
|
Clear the string (so that it contains only a null terminator).
Implemented in scfString. |
|
Get a copy of this string.
Implemented in scfString. |
|
Check if another string is equal to this one.
Implemented in scfString. |
|
Check if another string is equal to this one.
Implemented in scfString. |
|
Convert string to lowercase.
Implemented in scfString. |
|
Clear the string (so that it contains only a null terminator).
Implemented in scfString. |
|
Find the first occurrence of
Implemented in scfString. |
|
Find the first occurrence of a character in the string.
Implemented in scfString. |
|
Find the last occurrence of a character in the string.
Implemented in scfString. |
|
Format this string using sprintf()-style formatting directives.
Implemented in scfString. |
|
Format this string using sprintf() formatting directives in a va_list.
Implemented in scfString. |
|
Get the n'th character.
Implemented in scfString. |
|
Return the current capacity.
Implemented in scfString. |
|
Get a pointer to the null-terminated character array.
Implemented in scfString. |
|
Get a pointer to the null-terminated character array.
Implemented in scfString. |
|
Return the number of bytes by which the string grows.
Implemented in scfString. |
|
Insert another string into this one.
Implemented in scfString. |
|
Check if string is empty.
Implemented in scfString. |
|
Query string length.
Implemented in scfString. |
|
Get a pointer to the null-terminated character array.
Implemented in scfString. |
|
Check if another string is not equal to this one.
Implemented in scfString. |
|
Concatenate two strings and return a third one.
Implemented in scfString. |
|
Append a null-terminated C-string to this string.
Implemented in scfString. |
|
Append another string to this one.
Implemented in scfString. |
|
Check if another string is equal to this one.
Implemented in scfString. |
|
Get n'th character.
Implemented in scfString. |
|
Get a modifiable reference to n'th character.
Implemented in scfString. |
|
Overlay another string onto a part of this string.
Implemented in scfString. |
|
Set string buffer capacity to hold exactly the current content.
Implemented in scfString. |
|
Replace contents of this string with the contents of another.
Implemented in scfString. |
|
Replace contents of this string with the contents of another.
Implemented in scfString. |
|
Find all occurrences of
Implemented in scfString. |
|
Set the n'th character.
Implemented in scfString. |
|
Advise the string that it should allocate enough space to hold up to NewSize characters.
Implemented in scfString. |
|
Advise the string that it should grow its allocated buffer by approximately this many bytes when more space is required. This is an optimization to avoid excessive memory reallocation and heap management, which can be quite slow.
Implemented in scfString. |
|
Set string buffer capacity to hold exactly the current content.
Implemented in scfString. |
|
Copy and return a portion of this string.
Implemented in scfString. |
|
Copy a portion of this string.
Implemented in scfString. |
|
Truncate the string.
Implemented in scfString. |
|
Convert string to uppercase.
Implemented in scfString. |
The documentation for this struct was generated from the following file:
- iutil/string.h
Generated for Crystal Space by doxygen 1.4.6