scfString Class Reference
This is a thin SCF wrapper around csString. More...
#include <scfstr.h>
Inheritance diagram for scfString:

Public Methods | |
| scfString () | |
| Create an empty scfString object. | |
| scfString (size_t iLength) | |
| Create an scfString object and reserve space for iLength characters. | |
| scfString (const iString ©) | |
| Copy constructor. | |
| scfString (const char *copy) | |
| Yet another copy constructor. | |
| virtual | ~scfString () |
| Destroy a scfString object. | |
| const csString & | GetCsString () const |
| Get the pointer to the internal csString. | |
| csString & | GetCsString () |
| Get the pointer to the internal csString. | |
| virtual void | SetCapacity (size_t NewSize) |
| Set string capacity to NewSize characters. | |
| virtual size_t | GetCapacity () const |
| Get string capacity. | |
| virtual void | SetGrowsBy (size_t) |
| Set the allocation growth increment. | |
| virtual size_t | GetGrowsBy () const |
| Get the allocation growth increment. | |
| virtual void | SetGrowsExponentially (bool) |
| Set exponential allocation growth. Overrides SetGrowsBy(). | |
| virtual bool | GetGrowsExponentially () const |
| Get exponential growth setting. | |
| virtual void | Truncate (size_t iPos) |
| Truncate the string. | |
| virtual void | Reclaim () |
| Set string maximal capacity to current string length. | |
| virtual void | Clear () |
| Clear the string (so that it contains only ending 0 character). | |
| virtual csRef< iString > | Clone () const |
| Get a copy of this string. | |
| virtual char const * | GetData () const |
| Get a pointer to null-terminated character data. | |
| virtual char * | GetData () |
| Get a pointer to null-terminated character data. | |
| virtual size_t | Length () const |
| Query string length. | |
| virtual bool | IsEmpty () const |
| Check if string is empty. | |
| virtual char & | operator[] (size_t iPos) |
| Get a reference to iPos'th character. | |
| virtual char | operator[] (size_t iPos) const |
| Get the iPos'th character. | |
| virtual void | SetAt (size_t iPos, char iChar) |
| Set character number iPos to iChar. | |
| virtual char | GetAt (size_t iPos) const |
| Get character at position iPos. | |
| virtual void | Insert (size_t iPos, iString const *iStr) |
| Insert another string into this one at position iPos. | |
| virtual void | Overwrite (size_t iPos, iString const *iStr) |
| Overlay another string onto a part of this string. | |
| virtual void | Append (const char *iStr, size_t iCount=(size_t)-1) |
| Append an ASCIIZ string to this one (up to iCount characters). | |
| virtual void | Append (iString const *iStr, size_t iCount=(size_t)-1) |
| Append a string to this one (possibly iCount characters from the string). | |
| virtual csRef< iString > | Slice (size_t start, size_t len) const |
| Copy and return a portion of this string. | |
| virtual void | SubString (iString *sub, size_t start, size_t len) const |
| Copy a portion of this string. | |
| virtual size_t | FindFirst (const char c, size_t p=(size_t)-1) const |
| Find first character 'c' from position 'p'. | |
| virtual size_t | FindLast (const char c, size_t p=(size_t)-1) const |
| Find last character 'c', counting backwards from position 'p'. | |
| virtual void | Format (const char *format,...) |
| Format. | |
| virtual void | FormatV (const char *format, va_list args) |
| Format. | |
| virtual void | Replace (const iString *iStr, size_t iCount=(size_t)-1) |
| Replace contents of this string with the contents of another. | |
| virtual bool | Compare (const iString *iStr) const |
| Check if two strings are equal. | |
| virtual bool | CompareNoCase (const iString *iStr) const |
| Compare two strings ignoring case. | |
| virtual void | operator+= (const iString &iStr) |
| Append another string to this. | |
| virtual void | operator+= (const char *iStr) |
| Append a null-terminated string to this string. | |
| virtual csRef< iString > | operator+ (const iString &iStr) const |
| Concatenate two strings and return a third one. | |
| virtual | operator char const * () const |
| Get the null-terminated C string represented by this iString. | |
| virtual bool | operator== (const iString &iStr) const |
| Check if two strings are equal. | |
| virtual bool | operator!= (const iString &iStr) const |
| Check if two strings are not equal. | |
| virtual void | Downcase () |
| Convert string to lowercase. | |
| virtual void | Upcase () |
| Convert string to uppercase. | |
Detailed Description
This is a thin SCF wrapper around csString.
Definition at line 28 of file scfstr.h.
Constructor & Destructor Documentation
|
|
Create an empty scfString object.
Definition at line 36 of file scfstr.h. References SCF_CONSTRUCT_IBASE. |
|
|
Create an scfString object and reserve space for iLength characters.
Definition at line 40 of file scfstr.h. References SCF_CONSTRUCT_IBASE. |
|
|
Copy constructor.
Definition at line 44 of file scfstr.h. References SCF_CONSTRUCT_IBASE. |
|
|
Yet another copy constructor.
Definition at line 48 of file scfstr.h. References SCF_CONSTRUCT_IBASE. |
|
|
Destroy a scfString object.
Definition at line 52 of file scfstr.h. References SCF_DESTRUCT_IBASE. |
Member Function Documentation
|
||||||||||||
|
Append a string to this one (possibly iCount characters from the string).
Implements iString. |
|
||||||||||||
|
Append an ASCIIZ string to this one (up to iCount characters).
Implements iString. |
|
|
Clear the string (so that it contains only ending 0 character).
Implements iString. |
|
|
Get a copy of this string.
Implements iString. |
|
|
Check if two strings are equal.
Implements iString. |
|
|
Compare two strings ignoring case.
Implements iString. |
|
|
Convert string to lowercase.
Implements iString. |
|
||||||||||||
|
Find first character 'c' from position 'p'. If the character cannot be found, this function returns (size_t)-1 Implements iString. |
|
||||||||||||
|
Find last character 'c', counting backwards from position 'p'. Default position is the end of the string. If the character cannot be found, this function returns (size_t)-1 Implements iString. |
|
||||||||||||
|
Format.
Implements iString. |
|
||||||||||||
|
Format.
Implements iString. |
|
|
Get character at position iPos.
Implements iString. |
|
|
Get string capacity.
Implements iString. |
|
|
Get the pointer to the internal csString.
|
|
|
Get the pointer to the internal csString.
|
|
|
Get a pointer to null-terminated character data.
Implements iString. |
|
|
Get a pointer to null-terminated character data.
Implements iString. |
|
|
Get the allocation growth increment.
Implements iString. |
|
|
Get exponential growth setting.
Implements iString. |
|
||||||||||||
|
Insert another string into this one at position iPos.
Implements iString. |
|
|
Check if string is empty.
Implements iString. |
|
|
Query string length.
Implements iString. |
|
|
Get the null-terminated C string represented by this iString.
Implements iString. |
|
|
Check if two strings are not equal.
Implements iString. |
|
|
Concatenate two strings and return a third one.
Implements iString. |
|
|
Append a null-terminated string to this string.
Implements iString. |
|
|
Append another string to this.
Implements iString. |
|
|
Check if two strings are equal.
Implements iString. |
|
|
Get the iPos'th character.
Implements iString. |
|
|
Get a reference to iPos'th character.
Implements iString. |
|
||||||||||||
|
Overlay another string onto a part of this string.
Implements iString. |
|
|
Set string maximal capacity to current string length.
Implements iString. |
|
||||||||||||
|
Replace contents of this string with the contents of another.
Implements iString. |
|
||||||||||||
|
Set character number iPos to iChar.
Implements iString. |
|
|
Set string capacity to NewSize characters.
Implements iString. |
|
|
Set the allocation growth increment.
Implements iString. |
|
|
Set exponential allocation growth. Overrides SetGrowsBy().
Implements iString. |
|
||||||||||||
|
Copy and return a portion of this string. The substring runs from `start' for `len' characters. Implements iString. |
|
||||||||||||||||
|
Copy a portion of this string. The result is placed in 'sub'. The substring is from 'start', of length 'len'. Implements iString. |
|
|
Truncate the string.
Implements iString. |
|
|
Convert string to uppercase.
Implements iString. |
The documentation for this class was generated from the following file:
- csutil/scfstr.h
Generated for Crystal Space by doxygen 1.2.18
