#include <CEGUIString.h>
Public Types | |
typedef utf32 | value_type |
Basic 'code point' type used for String (utf32). | |
typedef uint | size_type |
Unsigned type used for size values and indices. | |
typedef ptrdiff_t | difference_type |
Signed type used for differences. | |
typedef utf32 & | reference |
Type used for utf32 code point references. | |
typedef const utf32 & | const_reference |
Type used for constant utf32 code point references. | |
typedef utf32 * | pointer |
Type used for utf32 code point pointers. | |
typedef const utf32 * | const_pointer |
Type used for constant utf32 code point pointers. | |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
Constant reverse iterator class for String objects. | |
typedef std::reverse_iterator< iterator > | reverse_iterator |
Reverse iterator class for String objects. | |
Public Member Functions | |
String (void) | |
Constructs an empty string. | |
~String (void) | |
Destructor for String objects. | |
String (const String &str) | |
Copy constructor - Creates a new string with the same value as str. | |
String (const String &str, size_type str_idx, size_type str_num=npos) | |
Constructs a new string initialised with code points from another String object. | |
String (const std::string &std_str) | |
Constructs a new string and initialises it using the std::string std_str. | |
String (const std::string &std_str, size_type str_idx, size_type str_num=npos) | |
Constructs a new string initialised with characters from the given std::string object. | |
String (const utf8 *utf8_str) | |
Constructs a new String object and initialise it using the provided utf8 encoded string buffer. | |
String (const utf8 *utf8_str, size_type chars_len) | |
Constructs a new String object and initialise it using the provided utf8 encoded string buffer. | |
String (size_type num, utf32 code_point) | |
Constructs a new String that is initialised with the specified code point. | |
String (const_iterator beg, const_iterator end) | |
Construct a new string object and initialise it with code-points from the range [beg, end). | |
String (const char *c_str) | |
Constructs a new String object and initialise it using the provided c-string. | |
String (const char *chars, size_type chars_len) | |
Constructs a new String object and initialise it using characters from the provided char array. | |
size_type | size (void) const |
Returns the size of the String in code points. | |
size_type | length (void) const |
Returns the size of the String in code points. | |
bool | empty (void) const |
Returns true if the String is empty. | |
size_type | capacity (void) const |
Return the number of code points that the String could hold before a re-allocation would be required. | |
void | reserve (size_type num=0) |
Specifies the amount of reserve capacity to allocate. | |
int | compare (const String &str) const |
Compares this String with the String 'str'. | |
int | compare (size_type idx, size_type len, const String &str, size_type str_idx=0, size_type str_len=npos) const |
Compares code points from this String with code points from the String 'str'. | |
int | compare (const std::string &std_str) const |
Compares this String with the std::string 'std_str'. | |
int | compare (size_type idx, size_type len, const std::string &std_str, size_type str_idx=0, size_type str_len=npos) const |
Compares code points from this String with code points from the std::string 'std_str'. | |
int | compare (const utf8 *utf8_str) const |
Compares this String with the null-terminated utf8 encoded 'utf8_str'. | |
int | compare (size_type idx, size_type len, const utf8 *utf8_str) const |
Compares code points from this String with the null-terminated utf8 encoded 'utf8_str'. | |
int | compare (size_type idx, size_type len, const utf8 *utf8_str, size_type str_cplen) const |
Compares code points from this String with the utf8 encoded data in buffer 'utf8_str'. | |
int | compare (const char *c_str) const |
Compares this String with the given c-string. | |
int | compare (size_type idx, size_type len, const char *c_str) const |
Compares code points from this String with the given c-string. | |
int | compare (size_type idx, size_type len, const char *chars, size_type chars_len) const |
Compares code points from this String with chars in the given char array. | |
reference | operator[] (size_type idx) |
Returns the code point at the given index. | |
value_type | operator[] (size_type idx) const |
Returns the code point at the given index. | |
reference | at (size_type idx) |
Returns the code point at the given index. | |
const_reference | at (size_type idx) const |
Returns the code point at the given index. | |
const char * | c_str (void) const |
Returns contents of the String as a null terminated string of utf8 encoded data. | |
const utf8 * | data (void) const |
Returns contents of the String as utf8 encoded data. | |
size_type | copy (utf8 *buf, size_type len=npos, size_type idx=0) const |
Copies an area of the String into the provided buffer as encoded utf8 data. | |
size_type | utf8_stream_len (size_type num=npos, size_type idx=0) |
Return the number of utf8 code units required to hold an area of the String when encoded as utf8 data. | |
String & | operator= (const String &str) |
Assign the value of String str to this String. | |
String & | assign (const String &str, size_type str_idx=0, size_type str_num=npos) |
Assign a sub-string of String str to this String. | |
String & | operator= (const std::string &std_str) |
Assign the value of std::string std_str to this String. | |
String & | assign (const std::string &std_str, size_type str_idx=0, size_type str_num=npos) |
Assign a sub-string of std::string std_str to this String. | |
String & | operator= (const utf8 *utf8_str) |
Assign to this String the string value represented by the given null-terminated utf8 encoded data. | |
String & | assign (const utf8 *utf8_str) |
Assign to this String the string value represented by the given null-terminated utf8 encoded data. | |
String & | assign (const utf8 *utf8_str, size_type str_num) |
Assign to this String the string value represented by the given utf8 encoded data. | |
String & | operator= (utf32 code_point) |
Assigns the specified utf32 code point to this String. Result is always a String 1 code point in length. | |
String & | assign (size_type num, utf32 code_point) |
Assigns the specified code point repeatedly to the String. | |
String & | operator= (const char *c_str) |
Assign to this String the given C-string. | |
String & | assign (const char *c_str) |
Assign to this String the given C-string. | |
String & | assign (const char *chars, size_type chars_len) |
Assign to this String a number of chars from a char array. | |
void | swap (String &str) |
Swaps the value of this String with the given String str. | |
String & | operator+= (const String &str) |
Appends the String str. | |
String & | append (const String &str, size_type str_idx=0, size_type str_num=npos) |
Appends a sub-string of the String str. | |
String & | operator+= (const std::string &std_str) |
Appends the std::string std_str. | |
String & | append (const std::string &std_str, size_type str_idx=0, size_type str_num=npos) |
Appends a sub-string of the std::string std_str. | |
String & | operator+= (const utf8 *utf8_str) |
Appends to the String the null-terminated utf8 encoded data in the buffer utf8_str. | |
String & | append (const utf8 *utf8_str) |
Appends to the String the null-terminated utf8 encoded data in the buffer utf8_str. | |
String & | append (const utf8 *utf8_str, size_type len) |
Appends to the String the utf8 encoded data in the buffer utf8_str. | |
String & | operator+= (utf32 code_point) |
Appends a single code point to the string. | |
String & | append (size_type num, utf32 code_point) |
Appends a single code point multiple times to the string. | |
void | push_back (utf32 code_point) |
Appends a single code point to the string. | |
String & | append (const_iterator beg, const_iterator end) |
Appends the code points in the reange [beg, end). | |
String & | operator+= (const char *c_str) |
Appends to the String the given c-string. | |
String & | append (const char *c_str) |
Appends to the String the given c-string. | |
String & | append (const char *chars, size_type chars_len) |
Appends to the String chars from the given char array. | |
String & | insert (size_type idx, const String &str) |
Inserts the given String object at the specified position. | |
String & | insert (size_type idx, const String &str, size_type str_idx, size_type str_num) |
Inserts a sub-string of the given String object at the specified position. | |
String & | insert (size_type idx, const std::string &std_str) |
Inserts the given std::string object at the specified position. | |
String & | insert (size_type idx, const std::string &std_str, size_type str_idx, size_type str_num) |
Inserts a sub-string of the given std::string object at the specified position. | |
String & | insert (size_type idx, const utf8 *utf8_str) |
Inserts the given null-terminated utf8 encoded data at the specified position. | |
String & | insert (size_type idx, const utf8 *utf8_str, size_type len) |
Inserts the given utf8 encoded data at the specified position. | |
String & | insert (size_type idx, size_type num, utf32 code_point) |
Inserts a code point multiple times into the String. | |
void | insert (iterator pos, size_type num, utf32 code_point) |
Inserts a code point multiple times into the String. | |
iterator | insert (iterator pos, utf32 code_point) |
Inserts a single code point into the String. | |
void | insert (iterator pos, const_iterator beg, const_iterator end) |
Inserts code points specified by the range [beg, end). | |
String & | insert (size_type idx, const char *c_str) |
Inserts the given c-string at the specified position. | |
String & | insert (size_type idx, const char *chars, size_type chars_len) |
Inserts chars from the given char array at the specified position. | |
void | clear (void) |
Removes all data from the String. | |
String & | erase (void) |
Removes all data from the String. | |
String & | erase (size_type idx) |
Erase a single code point from the string. | |
String & | erase (size_type idx, size_type len=npos) |
Erase a range of code points. | |
String & | erase (iterator pos) |
Erase the code point described by the given iterator. | |
String & | erase (iterator beg, iterator end) |
Erase a range of code points described by the iterators [beg, end). | |
void | resize (size_type num) |
Resizes the String either by inserting default utf32 code points to make it larger, or by truncating to make it smaller. | |
void | resize (size_type num, utf32 code_point) |
Resizes the String either by inserting the given utf32 code point to make it larger, or by truncating to make it smaller. | |
String & | replace (size_type idx, size_type len, const String &str) |
Replace code points in the String with the specified String object. | |
String & | replace (iterator beg, iterator end, const String &str) |
Replace the code points in the range [beg, end) with the specified String object. | |
String & | replace (size_type idx, size_type len, const String &str, size_type str_idx, size_type str_num) |
Replace code points in the String with a specified sub-string of a given String object. | |
String & | replace (size_type idx, size_type len, const std::string &std_str) |
Replace code points in the String with the specified std::string object. | |
String & | replace (iterator beg, iterator end, const std::string &std_str) |
Replace the code points in the range [beg, end) with the specified std::string object. | |
String & | replace (size_type idx, size_type len, const std::string &std_str, size_type str_idx, size_type str_num) |
Replace code points in the String with a specified sub-string of a given std::string object. | |
String & | replace (size_type idx, size_type len, const utf8 *utf8_str) |
Replace code points in the String with the specified null-terminated utf8 encoded data. | |
String & | replace (iterator beg, iterator end, const utf8 *utf8_str) |
Replace the code points in the range [beg, end) with the specified null-terminated utf8 encoded data. | |
String & | replace (size_type idx, size_type len, const utf8 *utf8_str, size_type str_len) |
Replace code points in the String with the specified utf8 encoded data. | |
String & | replace (iterator beg, iterator end, const utf8 *utf8_str, size_type str_len) |
Replace the code points in the range [beg, end) with the specified null-terminated utf8 encoded data. | |
String & | replace (size_type idx, size_type len, size_type num, utf32 code_point) |
Replaces a specified range of code points with occurrences of a given code point. | |
String & | replace (iterator beg, iterator end, size_type num, utf32 code_point) |
Replace the code points in the range [beg, end) with occurrences of a given code point. | |
String & | replace (iterator beg, iterator end, const_iterator newBeg, const_iterator newEnd) |
Replace the code points in the range [beg, end) with code points from the range [newBeg, newEnd). | |
String & | replace (size_type idx, size_type len, const char *c_str) |
Replace code points in the String with the specified c-string. | |
String & | replace (iterator beg, iterator end, const char *c_str) |
Replace the code points in the range [beg, end) with the specified c-string. | |
String & | replace (size_type idx, size_type len, const char *chars, size_type chars_len) |
Replace code points in the String with chars from the given char array. | |
String & | replace (iterator beg, iterator end, const char *chars, size_type chars_len) |
Replace the code points in the range [beg, end) with chars from the given char array. | |
size_type | find (utf32 code_point, size_type idx=0) const |
Search forwards for a given code point. | |
size_type | rfind (utf32 code_point, size_type idx=npos) const |
Search backwards for a given code point. | |
size_type | find (const String &str, size_type idx=0) const |
Search forwards for a sub-string. | |
size_type | rfind (const String &str, size_type idx=npos) const |
Search backwards for a sub-string. | |
size_type | find (const std::string &std_str, size_type idx=0) const |
Search forwards for a sub-string. | |
size_type | rfind (const std::string &std_str, size_type idx=npos) const |
Search backwards for a sub-string. | |
size_type | find (const utf8 *utf8_str, size_type idx=0) const |
Search forwards for a sub-string. | |
size_type | rfind (const utf8 *utf8_str, size_type idx=npos) const |
Search backwards for a sub-string. | |
size_type | find (const utf8 *utf8_str, size_type idx, size_type str_len) const |
Search forwards for a sub-string. | |
size_type | rfind (const utf8 *utf8_str, size_type idx, size_type str_len) const |
Search backwards for a sub-string. | |
size_type | find (const char *c_str, size_type idx=0) const |
Search forwards for a sub-string. | |
size_type | rfind (const char *c_str, size_type idx=npos) const |
Search backwards for a sub-string. | |
size_type | find (const char *chars, size_type idx, size_type chars_len) const |
Search forwards for a sub-string. | |
size_type | rfind (const char *chars, size_type idx, size_type chars_len) const |
Search backwards for a sub-string. | |
size_type | find_first_of (const String &str, size_type idx=0) const |
Find the first occurrence of one of a set of code points. | |
size_type | find_first_not_of (const String &str, size_type idx=0) const |
Find the first code point that is not one of a set of code points. | |
size_type | find_first_of (const std::string &std_str, size_type idx=0) const |
Find the first occurrence of one of a set of code points. | |
size_type | find_first_not_of (const std::string &std_str, size_type idx=0) const |
Find the first code point that is not one of a set of code points. | |
size_type | find_first_of (const utf8 *utf8_str, size_type idx=0) const |
Find the first occurrence of one of a set of code points. | |
size_type | find_first_not_of (const utf8 *utf8_str, size_type idx=0) const |
Find the first code point that is not one of a set of code points. | |
size_type | find_first_of (const utf8 *utf8_str, size_type idx, size_type str_len) const |
Find the first occurrence of one of a set of code points. | |
size_type | find_first_not_of (const utf8 *utf8_str, size_type idx, size_type str_len) const |
Find the first code point that is not one of a set of code points. | |
size_type | find_first_of (utf32 code_point, size_type idx=0) const |
Search forwards for a given code point. | |
size_type | find_first_not_of (utf32 code_point, size_type idx=0) const |
Search forwards for the first code point that does not match a given code point. | |
size_type | find_first_of (const char *c_str, size_type idx=0) const |
Find the first occurrence of one of a set of chars. | |
size_type | find_first_not_of (const char *c_str, size_type idx=0) const |
Find the first code point that is not one of a set of chars. | |
size_type | find_first_of (const char *chars, size_type idx, size_type chars_len) const |
Find the first occurrence of one of a set of chars. | |
size_type | find_first_not_of (const char *chars, size_type idx, size_type chars_len) const |
Find the first code point that is not one of a set of chars. | |
size_type | find_last_of (const String &str, size_type idx=npos) const |
Find the last occurrence of one of a set of code points. | |
size_type | find_last_not_of (const String &str, size_type idx=npos) const |
Find the last code point that is not one of a set of code points. | |
size_type | find_last_of (const std::string &std_str, size_type idx=npos) const |
Find the last occurrence of one of a set of code points. | |
size_type | find_last_not_of (const std::string &std_str, size_type idx=npos) const |
Find the last code point that is not one of a set of code points. | |
size_type | find_last_of (const utf8 *utf8_str, size_type idx=npos) const |
Find the last occurrence of one of a set of code points. | |
size_type | find_last_not_of (const utf8 *utf8_str, size_type idx=npos) const |
Find the last code point that is not one of a set of code points. | |
size_type | find_last_of (const utf8 *utf8_str, size_type idx, size_type str_len) const |
Find the last occurrence of one of a set of code points. | |
size_type | find_last_not_of (const utf8 *utf8_str, size_type idx, size_type str_len) const |
Find the last code point that is not one of a set of code points. | |
size_type | find_last_of (utf32 code_point, size_type idx=npos) const |
Search for last occurrence of a given code point. | |
size_type | find_last_not_of (utf32 code_point, size_type idx=npos) const |
Search for the last code point that does not match a given code point. | |
size_type | find_last_of (const char *c_str, size_type idx=npos) const |
Find the last occurrence of one of a set of chars. | |
size_type | find_last_not_of (const char *c_str, size_type idx=npos) const |
Find the last code point that is not one of a set of chars. | |
size_type | find_last_of (const char *chars, size_type idx, size_type chars_len) const |
Find the last occurrence of one of a set of chars. | |
size_type | find_last_not_of (const char *chars, size_type idx, size_type chars_len) const |
Find the last code point that is not one of a set of chars. | |
String | substr (size_type idx=0, size_type len=npos) const |
Returns a substring of this String. | |
iterator | begin (void) |
Return a forwards iterator that describes the beginning of the String. | |
const_iterator | begin (void) const |
Return a constant forwards iterator that describes the beginning of the String. | |
iterator | end (void) |
Return a forwards iterator that describes the end of the String. | |
const_iterator | end (void) const |
Return a constant forwards iterator that describes the end of the String. | |
reverse_iterator | rbegin (void) |
Return a reverse iterator that describes the beginning of the String. | |
const_reverse_iterator | rbegin (void) const |
Return a constant reverse iterator that describes the beginning of the String. | |
reverse_iterator | rend (void) |
Return a reverse iterator that describes the end of the String. | |
const_reverse_iterator | rend (void) const |
Return a constant reverse iterator that describes the end of the String. | |
Static Public Member Functions | |
size_type | max_size (void) |
Returns the maximum size of a String. | |
Static Public Attributes | |
const size_type | npos = (String::size_type)(-1) |
Value used to represent 'not found' conditions and 'all code points' etc. |
For the most part, this class can replace std::string in basic usage. However, currently String does not use the current locale, and also comparisons do not take into account the Unicode data tables, so are not 'correct' as such.
Definition at line 53 of file CEGUIString.h.
|
Type used for constant utf32 code point pointers.
Definition at line 65 of file CEGUIString.h. |
|
Type used for constant utf32 code point references.
Definition at line 63 of file CEGUIString.h. |
|
Constant reverse iterator class for String objects.
Definition at line 334 of file CEGUIString.h. |
|
Signed type used for differences.
Definition at line 61 of file CEGUIString.h. |
|
Type used for utf32 code point pointers.
Definition at line 64 of file CEGUIString.h. |
|
Type used for utf32 code point references.
Definition at line 62 of file CEGUIString.h. |
|
Reverse iterator class for String objects.
Definition at line 344 of file CEGUIString.h. |
|
Unsigned type used for size values and indices.
Definition at line 60 of file CEGUIString.h. |
|
Basic 'code point' type used for String (utf32).
Definition at line 59 of file CEGUIString.h. |
|
Constructs an empty string.
Definition at line 355 of file CEGUIString.h. |
|
Destructor for String objects.
Definition at line 364 of file CEGUIString.h. |
|
Copy constructor - Creates a new string with the same value as str.
Definition at line 391 of file CEGUIString.h. |
|
Constructs a new string initialised with code points from another String object.
Definition at line 414 of file CEGUIString.h. |
|
Constructs a new string and initialises it using the std::string std_str.
Definition at line 439 of file CEGUIString.h. |
|
Constructs a new string initialised with characters from the given std::string object.
Definition at line 467 of file CEGUIString.h. |
|
Constructs a new String object and initialise it using the provided utf8 encoded string buffer.
Definition at line 495 of file CEGUIString.h. |
|
Constructs a new String object and initialise it using the provided utf8 encoded string buffer. A basic string literal (cast to utf8*) can be passed to this function, provided that the string is comprised only of code points 0x00..0x7f. The use of extended ASCII characters (with values >0x7f) would result in incorrect behaviour as the String will attempt to 'decode' the data, with unpredictable results.
Definition at line 527 of file CEGUIString.h. |
|
Constructs a new String that is initialised with the specified code point.
Definition at line 551 of file CEGUIString.h. |
|
Construct a new string object and initialise it with code-points from the range [beg, end).
Definition at line 574 of file CEGUIString.h. |
|
Constructs a new String object and initialise it using the provided c-string.
Definition at line 596 of file CEGUIString.h. |
|
Constructs a new String object and initialise it using characters from the provided char array.
Definition at line 617 of file CEGUIString.h. |
|
Appends to the String chars from the given char array.
Definition at line 1938 of file CEGUIString.h. References CEGUI::utf32. |
|
Appends to the String the given c-string.
Definition at line 1917 of file CEGUIString.h. |
|
Appends the code points in the reange [beg, end).
Definition at line 1881 of file CEGUIString.h. |
|
Appends a single code point multiple times to the string.
Definition at line 1831 of file CEGUIString.h. References CEGUI::utf32. |
|
Appends to the String the utf8 encoded data in the buffer utf8_str.
Definition at line 1783 of file CEGUIString.h. |
|
Appends to the String the null-terminated utf8 encoded data in the buffer utf8_str.
Definition at line 1756 of file CEGUIString.h. |
|
Appends a sub-string of the std::string std_str.
Definition at line 1694 of file CEGUIString.h. References size(), and CEGUI::utf32. |
|
Appends a sub-string of the String str.
Definition at line 1635 of file CEGUIString.h. References d_cplength, and ptr(). Referenced by CEGUI::TabControl::makeButtonName(), CEGUI::MultiLineEditbox::MultiLineEditbox(), CEGUI::MultiLineEditbox::onMouseTripleClicked(), CEGUI::MultiLineEditbox::onTextChanged(), CEGUI::operator+(), CEGUI::Font_xmlHandler::startElement(), and CEGUI::XmlHandlerHelper::transcodeXmlCharToString(). |
|
Assign to this String a number of chars from a char array.
Definition at line 1545 of file CEGUIString.h. References CEGUI::utf32. |
|
Assign to this String the given C-string.
Definition at line 1524 of file CEGUIString.h. |
|
Assigns the specified code point repeatedly to the String.
Definition at line 1478 of file CEGUIString.h. References CEGUI::utf32. |
|
Assign to this String the string value represented by the given utf8 encoded data.
Definition at line 1435 of file CEGUIString.h. |
|
Assign to this String the string value represented by the given null-terminated utf8 encoded data.
Definition at line 1409 of file CEGUIString.h. |
|
Assign a sub-string of std::string std_str to this String.
Definition at line 1349 of file CEGUIString.h. References size(). |
|
Assign a sub-string of String str to this String.
Definition at line 1291 of file CEGUIString.h. References d_cplength, and ptr(). |
|
Returns the code point at the given index.
Definition at line 1143 of file CEGUIString.h. |
|
Returns the code point at the given index.
Definition at line 1123 of file CEGUIString.h. |
|
Return a constant forwards iterator that describes the beginning of the String.
Definition at line 4671 of file CEGUIString.h. |
|
Return a forwards iterator that describes the beginning of the String.
Definition at line 4659 of file CEGUIString.h. Referenced by CEGUI::WindowManager::destroyAllWindows(), and CEGUI::Font::getFormattedLineCount(). |
|
|
Return the number of code points that the String could hold before a re-allocation would be required.
Definition at line 690 of file CEGUIString.h. |
|
Removes all data from the String.
Definition at line 2354 of file CEGUIString.h. Referenced by CEGUI::Font::getFormattedLineCount(). |
|
Compares code points from this String with chars in the given char array.
Definition at line 1053 of file CEGUIString.h. |
|
Compares code points from this String with the given c-string.
Definition at line 1020 of file CEGUIString.h. |
|
Compares this String with the given c-string.
Definition at line 991 of file CEGUIString.h. |
|
Compares code points from this String with the utf8 encoded data in buffer 'utf8_str'.
Definition at line 959 of file CEGUIString.h. |
|
Compares code points from this String with the null-terminated utf8 encoded 'utf8_str'.
Definition at line 921 of file CEGUIString.h. |
|
Compares this String with the null-terminated utf8 encoded 'utf8_str'.
Definition at line 886 of file CEGUIString.h. |
|
Compares code points from this String with code points from the std::string 'std_str'.
Definition at line 845 of file CEGUIString.h. References size(). |
|
Compares this String with the std::string 'std_str'.
Definition at line 806 of file CEGUIString.h. |
|
Compares code points from this String with code points from the String 'str'.
Definition at line 770 of file CEGUIString.h. References d_cplength, and ptr(). |
|
Compares this String with the String 'str'.
Definition at line 736 of file CEGUIString.h. Referenced by CEGUI::operator!=(), CEGUI::operator<(), CEGUI::operator<=(), CEGUI::operator==(), CEGUI::operator>(), and CEGUI::operator>=(). |
|
Copies an area of the String into the provided buffer as encoded utf8 data.
Definition at line 1213 of file CEGUIString.h. |
|
Returns contents of the String as utf8 encoded data.
Definition at line 1186 of file CEGUIString.h. References CEGUI::utf8. |
|
Returns true if the String is empty.
Definition at line 658 of file CEGUIString.h. Referenced by CEGUI::GUILayout_xmlHandler::endElement(), CEGUI::Imageset::load(), CEGUI::DefaultResourceProvider::loadRawDataContainer(), CEGUI::WindowManager::loadWindowLayout(), CEGUI::WindowProperties::MouseCursorImage::set(), CEGUI::WindowProperties::Font::set(), CEGUI::FrameWindowProperties::TitlebarFont::set(), CEGUI::System::setDefaultFont(), CEGUI::Window::setFont(), CEGUI::GUILayout_xmlHandler::startElement(), and CEGUI::System::~System(). |
|
Return a constant forwards iterator that describes the end of the String.
Definition at line 4695 of file CEGUIString.h. |
|
Return a forwards iterator that describes the end of the String.
Definition at line 4683 of file CEGUIString.h. Referenced by CEGUI::Font::getCharAtPixel(), CEGUI::Font::getFormattedLineCount(), CEGUI::Font::getTextExtent(), and CEGUI::TabControl::selectTab_impl(). |
|
Erase a range of code points described by the iterators [beg, end).
Definition at line 2448 of file CEGUIString.h. |
|
Erase the code point described by the given iterator.
Definition at line 2430 of file CEGUIString.h. |
|
Erase a range of code points.
Definition at line 2405 of file CEGUIString.h. References CEGUI::utf32. |
|
Erase a single code point from the string.
Definition at line 2385 of file CEGUIString.h. |
|
Removes all data from the String.
Definition at line 2367 of file CEGUIString.h. Referenced by CEGUI::MultiLineEditbox::eraseSelectedText(), CEGUI::Editbox::eraseSelectedText(), CEGUI::MultiLineEditbox::handleBackspace(), CEGUI::Editbox::handleBackspace(), CEGUI::MultiLineEditbox::handleDelete(), CEGUI::Editbox::handleDelete(), CEGUI::Editbox::onCharacter(), CEGUI::TextUtils::trimLeadingChars(), and CEGUI::TextUtils::trimTrailingChars(). |
|
Search forwards for a sub-string.
Definition at line 3588 of file CEGUIString.h. |
|
Search forwards for a sub-string.
Definition at line 3541 of file CEGUIString.h. |
|
Search forwards for a sub-string.
Definition at line 3446 of file CEGUIString.h. |
|
Search forwards for a sub-string.
Definition at line 3389 of file CEGUIString.h. |
|
Search forwards for a sub-string.
Definition at line 3302 of file CEGUIString.h. References size(). |
|
Search forwards for a sub-string.
Definition at line 3227 of file CEGUIString.h. References d_cplength. |
|
Search forwards for a given code point.
Definition at line 3156 of file CEGUIString.h. References CEGUI::utf32. Referenced by CEGUI::TabControl::addChild_impl(), CEGUI::WindowManager::destroyWindow(), find_first_not_of(), find_first_of(), find_last_not_of(), find_last_of(), CEGUI::Font::getCharAtPixel(), CEGUI::Imageset::getImage(), CEGUI::TextUtils::getNextWordStartIdx(), CEGUI::PropertySet::getProperty(), CEGUI::PropertySet::getPropertyDefault(), CEGUI::Font::getTextExtent(), CEGUI::TextUtils::getWordStartIdx(), CEGUI::PropertySet::isPropertyDefault(), CEGUI::PropertySet::setProperty(), and CEGUI::Font_xmlHandler::startElement(). |
|
Find the first code point that is not one of a set of chars.
Definition at line 4106 of file CEGUIString.h. References CEGUI::utf32. |
|
Find the first code point that is not one of a set of chars.
Definition at line 4040 of file CEGUIString.h. |
|
Search forwards for the first code point that does not match a given code point.
Definition at line 3985 of file CEGUIString.h. |
|
Find the first code point that is not one of a set of code points.
Definition at line 3926 of file CEGUIString.h. References CEGUI::utf32. |
|
Find the first code point that is not one of a set of code points.
Definition at line 3848 of file CEGUIString.h. |
|
Find the first code point that is not one of a set of code points.
Definition at line 3780 of file CEGUIString.h. References CEGUI::utf32. |
|
Find the first code point that is not one of a set of code points.
Definition at line 3707 of file CEGUIString.h. References find(), and CEGUI::utf32. Referenced by CEGUI::Font::getFormattedLineCount(), CEGUI::TextUtils::getNextWord(), CEGUI::TextUtils::getNextWordStartIdx(), and CEGUI::TextUtils::trimLeadingChars(). |
|
Find the first occurrence of one of a set of chars.
Definition at line 4065 of file CEGUIString.h. References CEGUI::utf32. |
|
Find the first occurrence of one of a set of chars.
Definition at line 4018 of file CEGUIString.h. |
|
Search forwards for a given code point.
Definition at line 3964 of file CEGUIString.h. |
|
Find the first occurrence of one of a set of code points.
Definition at line 3878 of file CEGUIString.h. References CEGUI::utf32. |
|
Find the first occurrence of one of a set of code points.
Definition at line 3821 of file CEGUIString.h. |
|
Find the first occurrence of one of a set of code points.
Definition at line 3744 of file CEGUIString.h. References CEGUI::utf32. |
|
Find the first occurrence of one of a set of code points.
Definition at line 3675 of file CEGUIString.h. References find(), and CEGUI::utf32. Referenced by CEGUI::Font::drawText(), CEGUI::MultiLineEditbox::formatText(), CEGUI::Font::getFormattedLineCount(), CEGUI::Font::getFormattedTextExtent(), CEGUI::MultiLineEditbox::getNextTokenLength(), CEGUI::TextUtils::getNextWord(), CEGUI::TextUtils::getNextWordStartIdx(), and CEGUI::MultiLineEditbox::onMouseTripleClicked(). |
|
Find the last code point that is not one of a set of chars.
Definition at line 4598 of file CEGUIString.h. References CEGUI::utf32. |
|
Find the last code point that is not one of a set of chars.
Definition at line 4529 of file CEGUIString.h. |
|
Search for the last code point that does not match a given code point.
Definition at line 4471 of file CEGUIString.h. |
|
Find the last code point that is not one of a set of code points.
Definition at line 4411 of file CEGUIString.h. References CEGUI::utf32. |
|
Find the last code point that is not one of a set of code points.
Definition at line 4330 of file CEGUIString.h. |
|
Find the last code point that is not one of a set of code points.
Definition at line 4259 of file CEGUIString.h. References CEGUI::utf32. |
|
Find the last code point that is not one of a set of code points.
Definition at line 4180 of file CEGUIString.h. References find(), and CEGUI::utf32. Referenced by CEGUI::TextUtils::getWordStartIdx(), and CEGUI::TextUtils::trimTrailingChars(). |
|
Find the last occurrence of one of a set of chars.
Definition at line 4554 of file CEGUIString.h. References CEGUI::utf32. |
|
Find the last occurrence of one of a set of chars.
Definition at line 4507 of file CEGUIString.h. |
|
Search for last occurrence of a given code point.
Definition at line 4452 of file CEGUIString.h. |
|
Find the last occurrence of one of a set of code points.
Definition at line 4360 of file CEGUIString.h. References CEGUI::utf32. |
|
Find the last occurrence of one of a set of code points.
Definition at line 4303 of file CEGUIString.h. |
|
Find the last occurrence of one of a set of code points.
Definition at line 4220 of file CEGUIString.h. References CEGUI::utf32. |
|
Find the last occurrence of one of a set of code points.
Definition at line 4145 of file CEGUIString.h. References find(), and CEGUI::utf32. Referenced by CEGUI::TextUtils::getWordStartIdx(), and CEGUI::MultiLineEditbox::onMouseTripleClicked(). |
|
Inserts chars from the given char array at the specified position.
Definition at line 2320 of file CEGUIString.h. References CEGUI::utf32. |
|
Inserts the given c-string at the specified position.
Definition at line 2295 of file CEGUIString.h. |
|
Inserts code points specified by the range [beg, end).
Definition at line 2273 of file CEGUIString.h. |
|
Inserts a single code point into the String.
Definition at line 2249 of file CEGUIString.h. |
|
Inserts a code point multiple times into the String.
Definition at line 2229 of file CEGUIString.h. |
|
Inserts a code point multiple times into the String.
Definition at line 2188 of file CEGUIString.h. References CEGUI::utf32. |
|
Inserts the given utf8 encoded data at the specified position.
Definition at line 2150 of file CEGUIString.h. References CEGUI::utf32. |
|
Inserts the given null-terminated utf8 encoded data at the specified position.
Definition at line 2120 of file CEGUIString.h. |
|
Inserts a sub-string of the given std::string object at the specified position.
Definition at line 2072 of file CEGUIString.h. References size(), and CEGUI::utf32. |
|
Inserts the given std::string object at the specified position.
Definition at line 2041 of file CEGUIString.h. |
|
Inserts a sub-string of the given String object at the specified position.
Definition at line 2004 of file CEGUIString.h. References d_cplength, ptr(), and CEGUI::utf32. |
|
Inserts the given String object at the specified position.
Definition at line 1977 of file CEGUIString.h. Referenced by CEGUI::FactoryModule::FactoryModule(), CEGUI::MultiLineEditbox::handleNewLine(), CEGUI::MultiLineEditbox::onCharacter(), and CEGUI::Editbox::onCharacter(). |
|
|
Returns the maximum size of a String. Any operation that would result in a String that is larger than this value will throw the std::length_error exception.
Definition at line 672 of file CEGUIString.h. |
|
Appends to the String the given c-string.
Definition at line 1899 of file CEGUIString.h. |
|
Appends a single code point to the string.
Definition at line 1811 of file CEGUIString.h. |
|
Appends to the String the null-terminated utf8 encoded data in the buffer utf8_str.
Definition at line 1733 of file CEGUIString.h. |
|
Appends the std::string std_str.
Definition at line 1666 of file CEGUIString.h. |
|
Appends the String str.
Definition at line 1611 of file CEGUIString.h. |
|
Assign to this String the given C-string.
Definition at line 1506 of file CEGUIString.h. |
|
Assigns the specified utf32 code point to this String. Result is always a String 1 code point in length.
Definition at line 1458 of file CEGUIString.h. |
|
Assign to this String the string value represented by the given null-terminated utf8 encoded data.
Definition at line 1386 of file CEGUIString.h. |
|
Assign the value of std::string std_str to this String.
Definition at line 1321 of file CEGUIString.h. |
|
Assign the value of String str to this String.
Definition at line 1268 of file CEGUIString.h. |
|
Returns the code point at the given index.
Definition at line 1106 of file CEGUIString.h. |
|
Returns the code point at the given index.
Definition at line 1087 of file CEGUIString.h. |
|
Appends a single code point to the string.
Definition at line 1861 of file CEGUIString.h. |
|
Return a constant reverse iterator that describes the beginning of the String.
Definition at line 4719 of file CEGUIString.h. |
|
Return a reverse iterator that describes the beginning of the String.
Definition at line 4707 of file CEGUIString.h. |
|
Return a constant reverse iterator that describes the end of the String.
Definition at line 4743 of file CEGUIString.h. |
|
Return a reverse iterator that describes the end of the String.
Definition at line 4731 of file CEGUIString.h. |
|
Replace the code points in the range [beg, end) with chars from the given char array.
Definition at line 3133 of file CEGUIString.h. |
|
Replace code points in the String with chars from the given char array.
Definition at line 3081 of file CEGUIString.h. References CEGUI::utf32. |
|
Replace the code points in the range [beg, end) with the specified c-string.
Definition at line 3053 of file CEGUIString.h. |
|
Replace code points in the String with the specified c-string.
Definition at line 3026 of file CEGUIString.h. |
|
Replace the code points in the range [beg, end) with code points from the range [newBeg, newEnd).
Definition at line 2977 of file CEGUIString.h. References CEGUI::String::const_iterator::d_ptr, and CEGUI::utf32. |
|
Replace the code points in the range [beg, end) with occurrences of a given code point.
Definition at line 2947 of file CEGUIString.h. |
|
Replaces a specified range of code points with occurrences of a given code point.
Definition at line 2895 of file CEGUIString.h. References CEGUI::utf32. |
|
Replace the code points in the range [beg, end) with the specified null-terminated utf8 encoded data.
Definition at line 2868 of file CEGUIString.h. |
|
Replace code points in the String with the specified utf8 encoded data.
Definition at line 2813 of file CEGUIString.h. References CEGUI::utf32. |
|
Replace the code points in the range [beg, end) with the specified null-terminated utf8 encoded data.
Definition at line 2780 of file CEGUIString.h. |
|
Replace code points in the String with the specified null-terminated utf8 encoded data.
Definition at line 2748 of file CEGUIString.h. |
|
Replace code points in the String with a specified sub-string of a given std::string object.
Definition at line 2691 of file CEGUIString.h. References size(), and CEGUI::utf32. |
|
Replace the code points in the range [beg, end) with the specified std::string object.
Definition at line 2657 of file CEGUIString.h. |
|
Replace code points in the String with the specified std::string object.
Definition at line 2627 of file CEGUIString.h. |
|
Replace code points in the String with a specified sub-string of a given String object.
Definition at line 2579 of file CEGUIString.h. References d_cplength, ptr(), and CEGUI::utf32. |
|
Replace the code points in the range [beg, end) with the specified String object.
Definition at line 2549 of file CEGUIString.h. |
|
Replace code points in the String with the specified String object.
Definition at line 2523 of file CEGUIString.h. |
|
Specifies the amount of reserve capacity to allocate.
Definition at line 710 of file CEGUIString.h. |
|
Resizes the String either by inserting the given utf32 code point to make it larger, or by truncating to make it smaller.
Definition at line 2488 of file CEGUIString.h. |
|
Resizes the String either by inserting default utf32 code points to make it larger, or by truncating to make it smaller.
Definition at line 2468 of file CEGUIString.h. References CEGUI::utf32. Referenced by CEGUI::MultiLineEditbox::setMaxTextLength(), CEGUI::Editbox::setMaxTextLength(), and CEGUI::TextUtils::trimTrailingChars(). |
|
Search backwards for a sub-string.
Definition at line 3632 of file CEGUIString.h. |
|
Search backwards for a sub-string.
Definition at line 3563 of file CEGUIString.h. |
|
Search backwards for a sub-string.
Definition at line 3497 of file CEGUIString.h. |
|
Search backwards for a sub-string.
Definition at line 3416 of file CEGUIString.h. |
|
Search backwards for a sub-string.
Definition at line 3343 of file CEGUIString.h. References size(). |
|
Search backwards for a sub-string.
Definition at line 3262 of file CEGUIString.h. References d_cplength. |
|
Search backwards for a given code point.
Definition at line 3189 of file CEGUIString.h. References CEGUI::utf32. |
|
Returns the size of the String in code points.
Definition at line 634 of file CEGUIString.h. Referenced by append(), assign(), compare(), find(), insert(), replace(), and rfind(). |
|
Returns a substring of this String.
Definition at line 4641 of file CEGUIString.h. Referenced by CEGUI::Font::drawText(), CEGUI::MultiLineEditbox::ensureCaratIsVisible(), CEGUI::FactoryModule::FactoryModule(), CEGUI::MultiLineEditbox::formatText(), CEGUI::Font::getFormattedLineCount(), CEGUI::Font::getFormattedTextExtent(), CEGUI::TextUtils::getNextWord(), CEGUI::MultiLineEditbox::getTextIndexFromPosition(), CEGUI::TextUtils::getWordStartIdx(), CEGUI::MultiLineEditbox::handleLineDown(), CEGUI::MultiLineEditbox::handleLineUp(), and CEGUI::MultiLineEditbox::renderTextLines(). |
|
Swaps the value of this String with the given String str.
Definition at line 1570 of file CEGUIString.h. References d_buffer, d_cplength, d_quickbuff, d_reserve, STR_QUICKBUFF_SIZE, and CEGUI::utf32. Referenced by CEGUI::swap(). |
|
Return the number of utf8 code units required to hold an area of the String when encoded as utf8 data.
Definition at line 1243 of file CEGUIString.h. References ceguimin. |
|
Value used to represent 'not found' conditions and 'all code points' etc.
Definition at line 35 of file CEGUIString.cpp. |