|
| void | append (const string< T > &other) |
| | Appends a string to this string. More...
|
| |
| void | append (const string< T > &other, s32 length) |
| | Appends a string of the length l to this string. More...
|
| |
| void | append (T character) |
| | Appends a character to this string. More...
|
| |
| const T * | c_str () const |
| | Returns character string. More...
|
| |
| bool | equals_ignore_case (const string< T > &other) const |
| | Compares the string ignoring case. More...
|
| |
| bool | equalsn (const string< T > &other, int len) |
| | compares the first n characters of the strings More...
|
| |
| bool | equalsn (const T *str, int len) |
| | compares the first n characters of the strings More...
|
| |
| void | erase (int index) |
| | Erases a character from the string. More...
|
| |
| s32 | findFirst (T c) const |
| | finds first occurrence of character in string More...
|
| |
| s32 | findFirstChar (T *c, int count) const |
| | finds first occurrence of a character of a list in string More...
|
| |
| template<class B > |
| s32 | findFirstCharNotInList (B *c, int count) const |
| | Finds first position of a character not in a given list. More...
|
| |
| s32 | findLast (T c) const |
| | finds last occurrence of character in string More...
|
| |
| template<class B > |
| s32 | findLastCharNotInList (B *c, int count) const |
| | Finds last position of a character not in a given list. More...
|
| |
| s32 | findNext (T c, s32 startPos) const |
| | finds next occurrence of character in string More...
|
| |
| void | make_lower () |
| | Makes the string lower case. More...
|
| |
| void | make_upper () |
| | Makes the string upper case. More...
|
| |
| bool | operator!= (const string< T > &other) const |
| | Equals not operator. More...
|
| |
| template<class B > |
| string< T > | operator+ (const B *c) |
| | Add operator for strings, ascii and unicode. More...
|
| |
| string< T > | operator+ (const string< T > &other) |
| | Add operator for other strings. More...
|
| |
| void | operator+= (const string< T > &other) |
| |
| void | operator+= (int i) |
| |
| void | operator+= (T c) |
| |
| bool | operator< (const string< T > &other) const |
| | Is smaller operator. More...
|
| |
| template<class B > |
| string< T > & | operator= (const B *c) |
| | Assignment operator for strings, ascii and unicode. More...
|
| |
| string< T > & | operator= (const string< T > &other) |
| | Assignment operator. More...
|
| |
| bool | operator== (const string< T > &other) const |
| | Comparison operator. More...
|
| |
| bool | operator== (const T *str) const |
| | Comparison operator. More...
|
| |
| T & | operator[] (const s32 index) const |
| | Direct access operator. More...
|
| |
| void | replace (T toReplace, T replaceWith) |
| | replaces all characters of a special type with another one More...
|
| |
| void | reserve (s32 count) |
| | Reserves some memory. More...
|
| |
| s32 | size () const |
| | Returns length of string. More...
|
| |
| | string () |
| | Default constructor. More...
|
| |
| template<class B > |
| | string (const B *c) |
| | Constructor for unicode and ascii strings. More...
|
| |
| template<class B > |
| | string (const B *c, s32 lenght) |
| | Constructor for copying a string from a pointer with a given lenght. More...
|
| |
| | string (const string< T > &other) |
| | Constructor. More...
|
| |
| | string (int number) |
| | Constructs a string from an int. More...
|
| |
| string< T > | subString (s32 begin, s32 length) |
| | Returns a substring. More...
|
| |
| void | trim () |
| | trims the string. More...
|
| |
| | ~string () |
| | destructor More...
|
| |
template<class T>
class irr::core::string< T >
Very simple string class with some useful features.
string<c8> and string<wchar_t> work both with unicode AND ascii, so you can assign unicode to string<c8> and ascii to string<wchar_t> (and the other way round) if your ever would want to. Note that the conversation between both is not done using an encoding.
Known bugs: Special characters like 'Ä', 'Ü' and 'Ö' are ignored in the methods make_upper, make_lower and equals_ignore_case.