#include <FUString.h>
Inheritance diagram for fm::stringT< CH >:

Public Types | |
| typedef fm::vector< CH, true > | Parent |
| The parent class. | |
Public Member Functions | |
| stringT () | |
| Default constructor. | |
| stringT (const stringT &c) | |
| Copy constructor. | |
| stringT (const CH *c) | |
| Copy constructor. | |
| stringT (const CH *c, size_t length) | |
| Copy constructor. | |
| stringT (size_t length, const CH &c) | |
| Constructor. | |
| size_t | length () const |
| Retrieves the length of the string. | |
| size_t | size () const |
| See above. | |
| CH & | back () |
| Retrieves the last element of the string. | |
| const CH & | back () const |
| See above. | |
| void | pop_back () |
| Removes the last character from a string. | |
| bool | empty () const |
| Retrieves whether the string contains useful data. | |
| stringT | substr (size_t start, size_t count=npos) const |
| Retrieves a segment of the string. | |
| void | append (const stringT &str) |
| Appends a string to this string. | |
| void | append (const CH *str, size_t count=npos) |
| Appends a NULL-terminated character buffer to this string. | |
| void | append (const CH &c) |
| Appends one character to this string. | |
| void | insert (size_t offset, const CH *str, size_t count=npos) |
| Inserts a character buffer in this string. | |
| void | insert (size_t offset, const stringT &str) |
| Inserts a string in this string. | |
| const CH * | c_str () const |
| Retrieves the character buffer attached to this string. | |
| operator const CH * () const | |
| See above. | |
| size_t | find (const CH &character, size_t offset=0) const |
| Retrieves the position of the first matching character found within the string. | |
| size_t | find (const stringT &str, size_t offset=0) const |
| Retrieves the position of the first matching string found within the string. | |
| size_t | find (const CH *c, size_t offset=0) const |
| Retrieves the position of the first matching character buffer found within the string. | |
| size_t | rfind (const CH &character, size_t offset=0) const |
| Retrieves the position of the last matching character found within the string. | |
| size_t | rfind (const stringT &str, size_t offset=0) const |
| Retrieves the position of the last matching string found within the string. | |
| size_t | rfind (const CH *c, size_t offset=0) const |
| Retrieves the position of the last matching character buffer found within the string. | |
| size_t | find_first_of (const CH *c, size_t offset=0) const |
| Retrieves the position of the first matching character from a list of possible characters. | |
| size_t | find_last_of (const CH *c, size_t offset=0) const |
| Retrieves the position of the last matching character from a list of possible characters. | |
| void | erase (size_t start=0, size_t end=npos) |
| Removes a range of characters from a string. | |
| void | resize (size_t size) |
| Override the fm::vector resize. | |
| void | resize (size_t count, const CH &value) |
| Override the fm::vector resize. | |
Static Public Attributes | |
| static const size_t | npos = ~(size_t)0 |
| Constant for infinity length. | |
Intentionally has an interface similar to STL. You should use fm::string for UTF8 strings and fstring for UNICODE strings.
|
|||||||||
|
Default constructor. Defaults to an empty string. |
|
||||||||||
|
Copy constructor.
|
|
||||||||||
|
Copy constructor.
|
|
||||||||||||||||
|
Copy constructor.
|
|
||||||||||||||||
|
Constructor.
|
|
||||||||||
|
Appends one character to this string.
|
|
||||||||||||||||
|
Appends a NULL-terminated character buffer to this string.
|
|
||||||||||
|
Appends a string to this string.
|
|
|||||||||
|
Retrieves the last element of the string. This function is NULL-termination aware.
Reimplemented from fm::vector< CH, true >. |
|
|||||||||
|
Retrieves the character buffer attached to this string.
|
|
|||||||||
|
Retrieves whether the string contains useful data. This function differs from the parent because it checks for NULL-termination.
Reimplemented from fm::vector< CH, true >. |
|
||||||||||||||||
|
Removes a range of characters from a string.
Reimplemented from fm::vector< CH, true >. |
|
||||||||||||||||
|
Retrieves the position of the first matching character buffer found within the string.
|
|
||||||||||||||||
|
Retrieves the position of the first matching string found within the string.
|
|
||||||||||||||||
|
Retrieves the position of the first matching character found within the string.
|
|
||||||||||||||||
|
Retrieves the position of the first matching character from a list of possible characters.
|
|
||||||||||||||||
|
Retrieves the position of the last matching character from a list of possible characters.
|
|
||||||||||||||||
|
Inserts a string in this string.
|
|
||||||||||||||||||||
|
Inserts a character buffer in this string.
Reimplemented from fm::vector< CH, true >. |
|
|||||||||
|
Retrieves the length of the string. This function is NULL-termination aware.
|
|
|||||||||
|
Removes the last character from a string. This function is NULL-termination aware. Reimplemented from fm::vector< CH, true >. |
|
||||||||||||||||
|
Override the fm::vector resize. That call does not handle the assumption this class makes that every string is null terminated. Sets the number of values contained in the list.
Reimplemented from fm::vector< CH, true >. |
|
||||||||||
|
Override the fm::vector resize. That call does not handle the assumption this class makes that every string is null terminated. The fm::string resize command will automatically create a null terminated string of length size
Reimplemented from fm::vector< CH, true >. |
|
||||||||||||||||
|
Retrieves the position of the last matching character buffer found within the string.
|
|
||||||||||||||||
|
Retrieves the position of the last matching string found within the string.
|
|
||||||||||||||||
|
Retrieves the position of the last matching character found within the string.
|
|
||||||||||||||||
|
Retrieves a segment of the string.
|
|
|||||
|
Constant for infinity length. This important constant is used throughout the class to indicate infinity or values not found. |
1.4.6-NO