![]() |
Public API Reference |
#include <scfstr.h>
Inheritance diagram for scfString:
Public Methods | |
scfString () | |
Create an empty scfString object. More... | |
scfString (size_t iLength) | |
Create an scfString object and reserve space for iLength characters. More... | |
scfString (const iString ©) | |
Copy constructor. More... | |
scfString (const char *copy) | |
Yet another copy constructor. More... | |
virtual | ~scfString () |
Destroy a scfString object. More... | |
const csString & | GetCsString () const |
Get the pointer to the internal csString. More... | |
csString & | GetCsString () |
Get the pointer to the internal csString. More... | |
virtual void | SetCapacity (size_t NewSize) |
Set string capacity to NewSize characters. More... | |
virtual size_t | GetCapacity () const |
Get string capacity. More... | |
virtual void | SetGrowsBy (size_t) |
Set the allocation growth increment. More... | |
virtual size_t | GetGrowsBy () const |
Get the allocation growth increment. More... | |
virtual void | SetGrowsExponentially (bool) |
Set exponential allocation growth. Overrides SetGrowsBy(). More... | |
virtual bool | GetGrowsExponentially () const |
Get exponential growth setting. More... | |
virtual void | Truncate (size_t iPos) |
Truncate the string. More... | |
virtual void | Reclaim () |
Set string maximal capacity to current string length. More... | |
virtual iString * | Clone () const |
Get a copy of this string. More... | |
virtual char * | GetData () const |
Get a pointer to ASCIIZ string. More... | |
virtual size_t | Length () const |
Query string length. More... | |
virtual char & | operator[] (size_t iPos) |
Get a reference to iPos'th character. More... | |
virtual void | SetAt (size_t iPos, char iChar) |
Set characetr number iPos to iChar. More... | |
virtual char | GetAt (size_t iPos) const |
Get character at position iPos. More... | |
virtual void | Insert (size_t iPos, iString *iStr) |
Insert another string into this one at position iPos. More... | |
virtual void | Overwrite (size_t iPos, iString *iStr) |
Overlay another string onto a part of this string. More... | |
virtual iString & | Append (const char *iStr, size_t iCount=(size_t)-1) |
Append an ASCIIZ string to this one (up to iCount characters). More... | |
virtual iString & | Append (const iString *iStr, size_t iCount=(size_t)-1) |
Append a string to this one (possibly iCount characters from the string). More... | |
virtual void | Format (const char *format,...) |
Format. More... | |
virtual void | FormatV (const char *format, va_list args) |
Format. More... | |
virtual void | Replace (const iString *iStr, size_t iCount=(size_t)-1) |
Replace contents of this string with the contents of another. More... | |
virtual bool | Compare (const iString *iStr) const |
Check if two strings are equal. More... | |
virtual bool | CompareNoCase (const iString *iStr) const |
Compare two strings ignoring case. More... |
Definition at line 27 of file scfstr.h.
|
Create an empty scfString object.
Definition at line 35 of file scfstr.h. References SCF_CONSTRUCT_IBASE. |
|
Create an scfString object and reserve space for iLength characters.
Definition at line 39 of file scfstr.h. References SCF_CONSTRUCT_IBASE. |
|
Copy constructor.
Definition at line 43 of file scfstr.h. References GetData, and SCF_CONSTRUCT_IBASE. |
|
Yet another copy constructor.
Definition at line 47 of file scfstr.h. References SCF_CONSTRUCT_IBASE. |
|
Destroy a scfString object.
|
|
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. |
|
Get a copy of this string.
Implements iString. |
|
Check if two strings are equal.
Implements iString. |
|
Compare two strings ignoring case.
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 ASCIIZ string.
Implements iString. Referenced by scfString. |
|
Get the allocation growth increment.
Implements iString. |
|
Get exponential growth setting.
Implements iString. |
|
Insert another string into this one at position iPos.
Implements iString. |
|
Query string length.
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 characetr 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. |
|
Truncate the string.
Implements iString. |