#include <CEGUIString.h>
Public Types | |
typedef utf32 | value_type |
Basic 'code point' type used for String (utf32). | |
typedef size_t | 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 iter_beg, const_iterator iter_end) | |
Construct a new string object and initialise it with code-points from the range [beg, end). | |
String (const char *cstr) | |
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 *cstr) const |
Compares this String with the given c-string. | |
int | compare (size_type idx, size_type len, const char *cstr) 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 *cstr) |
Assign to this String the given C-string. | |
String & | assign (const char *cstr) |
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 iter_beg, const_iterator iter_end) |
Appends the code points in the reange [beg, end). | |
String & | operator+= (const char *cstr) |
Appends to the String the given c-string. | |
String & | append (const char *cstr) |
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 iter_pos, const_iterator iter_beg, const_iterator iter_end) |
Inserts code points specified by the range [beg, end). | |
String & | insert (size_type idx, const char *cstr) |
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 iter_beg, iterator iter_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 iter_beg, iterator iter_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 iter_beg, iterator iter_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 iter_beg, iterator iter_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 iter_beg, iterator iter_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 iter_beg, iterator iter_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 iter_beg, iterator iter_end, const_iterator iter_newBeg, const_iterator iter_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 *cstr) |
Replace code points in the String with the specified c-string. | |
String & | replace (iterator iter_beg, iterator iter_end, const char *cstr) |
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 iter_beg, iterator iter_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 *cstr, size_type idx=0) const |
Search forwards for a sub-string. | |
size_type | rfind (const char *cstr, 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 *cstr, size_type idx=0) const |
Find the first occurrence of one of a set of chars. | |
size_type | find_first_not_of (const char *cstr, 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 *cstr, size_type idx=npos) const |
Find the last occurrence of one of a set of chars. | |
size_type | find_last_not_of (const char *cstr, 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 | |
static size_type | max_size (void) |
Returns the maximum size of a String. | |
Static Public Attributes | |
static const size_type | npos = (String::size_type)(-1) |
Value used to represent 'not found' conditions and 'all code points' etc. | |
Classes | |
class | const_iterator |
Constant forward iterator class for String objects. More... | |
class | iterator |
Forward iterator class for String objects. More... |
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 41 of file CEGUIString.cpp. References STR_QUICKBUFF_SIZE. |
|
Copy constructor - Creates a new string with the same value as str.
Definition at line 379 of file CEGUIString.h. |
|
Constructs a new string initialised with code points from another String object.
Definition at line 402 of file CEGUIString.h. |
|
Constructs a new string and initialises it using the std::string std_str.
Definition at line 427 of file CEGUIString.h. |
|
Constructs a new string initialised with characters from the given std::string object.
Definition at line 455 of file CEGUIString.h. |
|
Constructs a new String object and initialise it using the provided utf8 encoded string buffer.
Definition at line 483 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 515 of file CEGUIString.h. |
|
Constructs a new String that is initialised with the specified code point.
Definition at line 539 of file CEGUIString.h. |
|
Construct a new string object and initialise it with code-points from the range [beg, end).
Definition at line 562 of file CEGUIString.h. |
|
Constructs a new String object and initialise it using the provided c-string.
Definition at line 584 of file CEGUIString.h. |
|
Constructs a new String object and initialise it using characters from the provided char array.
Definition at line 605 of file CEGUIString.h. |
|
Appends to the String chars from the given char array.
Definition at line 1927 of file CEGUIString.h. |
|
Appends to the String the given c-string.
Definition at line 1906 of file CEGUIString.h. |
|
Appends the code points in the reange [beg, end).
Definition at line 1870 of file CEGUIString.h. |
|
Appends a single code point multiple times to the string.
Definition at line 1820 of file CEGUIString.h. |
|
Appends to the String the utf8 encoded data in the buffer utf8_str.
Definition at line 1772 of file CEGUIString.h. |
|
Appends to the String the null-terminated utf8 encoded data in the buffer utf8_str.
Definition at line 1745 of file CEGUIString.h. |
|
Appends a sub-string of the std::string std_str.
Definition at line 1683 of file CEGUIString.h. |
|
Appends a sub-string of the String str.
Definition at line 1624 of file CEGUIString.h. References d_cplength, and ptr(). Referenced by CEGUI::Font_xmlHandler::elementStart(), CEGUI::TabControl::makeButtonName(), CEGUI::MultiLineEditbox::MultiLineEditbox(), CEGUI::MultiLineEditbox::onMouseTripleClicked(), CEGUI::MultiLineEditbox::onTextChanged(), CEGUI::operator+(), and CEGUI::XercesParser::transcodeXmlCharToString(). |
|
Assign to this String a number of chars from a char array.
Definition at line 1534 of file CEGUIString.h. |
|
Assign to this String the given C-string.
Definition at line 1513 of file CEGUIString.h. |
|
Assigns the specified code point repeatedly to the String.
Definition at line 1467 of file CEGUIString.h. |
|
Assign to this String the string value represented by the given utf8 encoded data.
Definition at line 1424 of file CEGUIString.h. |
|
Assign to this String the string value represented by the given null-terminated utf8 encoded data.
Definition at line 1398 of file CEGUIString.h. |
|
Assign a sub-string of std::string std_str to this String.
Definition at line 1338 of file CEGUIString.h. |
|
Assign a sub-string of String str to this String.
Definition at line 1279 of file CEGUIString.h. References d_cplength, and ptr(). Referenced by CEGUI::XercesParser::initialiseSchema(). |
|
Returns the code point at the given index.
Definition at line 1131 of file CEGUIString.h. |
|
Returns the code point at the given index.
Definition at line 1111 of file CEGUIString.h. |
|
Return a constant forwards iterator that describes the beginning of the String.
Definition at line 4660 of file CEGUIString.h. |
|
Return a forwards iterator that describes the beginning of the String.
Definition at line 4648 of file CEGUIString.h. Referenced by CEGUI::Font::getFormattedLineCount(). |
|
|
Return the number of code points that the String could hold before a re-allocation would be required.
Definition at line 678 of file CEGUIString.h. |
|
Removes all data from the String.
Definition at line 2343 of file CEGUIString.h. Referenced by CEGUI::Scheme_xmlHandler::elementStart(), and CEGUI::Font::getFormattedLineCount(). |
|
Compares code points from this String with chars in the given char array.
Definition at line 1041 of file CEGUIString.h. |
|
Compares code points from this String with the given c-string.
Definition at line 1008 of file CEGUIString.h. |
|
Compares this String with the given c-string.
Definition at line 979 of file CEGUIString.h. |
|
Compares code points from this String with the utf8 encoded data in buffer 'utf8_str'.
Definition at line 947 of file CEGUIString.h. |
|
Compares code points from this String with the null-terminated utf8 encoded 'utf8_str'.
Definition at line 909 of file CEGUIString.h. |
|
Compares this String with the null-terminated utf8 encoded 'utf8_str'.
Definition at line 874 of file CEGUIString.h. |
|
Compares code points from this String with code points from the std::string 'std_str'.
Definition at line 833 of file CEGUIString.h. |
|
Compares this String with the std::string 'std_str'.
Definition at line 794 of file CEGUIString.h. |
|
Compares code points from this String with code points from the String 'str'.
Definition at line 758 of file CEGUIString.h. References d_cplength, and ptr(). |
|
Compares this String with the String 'str'.
Definition at line 724 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 1201 of file CEGUIString.h. |
|
Returns contents of the String as utf8 encoded data.
Definition at line 1174 of file CEGUIString.h. |
|
|
Return a constant forwards iterator that describes the end of the String.
Definition at line 4684 of file CEGUIString.h. |
|
Return a forwards iterator that describes the end of the String.
Definition at line 4672 of file CEGUIString.h. Referenced by CEGUI::Font::getFormattedLineCount(). |
|
Erase a range of code points described by the iterators [beg, end).
Definition at line 2437 of file CEGUIString.h. |
|
Erase the code point described by the given iterator.
Definition at line 2419 of file CEGUIString.h. |
|
Erase a range of code points.
Definition at line 2394 of file CEGUIString.h. |
|
Erase a single code point from the string.
Definition at line 2374 of file CEGUIString.h. |
|
Removes all data from the String.
Definition at line 2356 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 3577 of file CEGUIString.h. |
|
Search forwards for a sub-string.
Definition at line 3530 of file CEGUIString.h. |
|
Search forwards for a sub-string.
Definition at line 3435 of file CEGUIString.h. |
|
Search forwards for a sub-string.
Definition at line 3378 of file CEGUIString.h. |
|
Search forwards for a sub-string.
Definition at line 3291 of file CEGUIString.h. |
|
Search forwards for a sub-string.
Definition at line 3216 of file CEGUIString.h. References d_cplength. |
|
Search forwards for a given code point.
Definition at line 3145 of file CEGUIString.h. Referenced by CEGUI::TabControl::addChild_impl(), CEGUI::ScrollablePane::addChild_impl(), CEGUI::Font_xmlHandler::elementStart(), find_first_not_of(), find_first_of(), find_last_not_of(), find_last_of(), CEGUI::TextUtils::getNextWordStartIdx(), CEGUI::TextUtils::getWordStartIdx(), CEGUI::ScrollablePane::removeChild_impl(), CEGUI::MultiColumnListProperties::ColumnHeader::set(), and CEGUI::Window::writeChildWindowsXML(). |
|
Find the first code point that is not one of a set of chars.
Definition at line 4095 of file CEGUIString.h. |
|
Find the first code point that is not one of a set of chars.
Definition at line 4029 of file CEGUIString.h. |
|
Search forwards for the first code point that does not match a given code point.
Definition at line 3974 of file CEGUIString.h. |
|
Find the first code point that is not one of a set of code points.
Definition at line 3915 of file CEGUIString.h. |
|
Find the first code point that is not one of a set of code points.
Definition at line 3837 of file CEGUIString.h. |
|
Find the first code point that is not one of a set of code points.
Definition at line 3769 of file CEGUIString.h. |
|
Find the first code point that is not one of a set of code points.
Definition at line 3696 of file CEGUIString.h. References find(). 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 4054 of file CEGUIString.h. |
|
Find the first occurrence of one of a set of chars.
Definition at line 4007 of file CEGUIString.h. |
|
Search forwards for a given code point.
Definition at line 3953 of file CEGUIString.h. |
|
Find the first occurrence of one of a set of code points.
Definition at line 3867 of file CEGUIString.h. |
|
Find the first occurrence of one of a set of code points.
Definition at line 3810 of file CEGUIString.h. |
|
Find the first occurrence of one of a set of code points.
Definition at line 3733 of file CEGUIString.h. |
|
Find the first occurrence of one of a set of code points.
Definition at line 3664 of file CEGUIString.h. References find(). Referenced by CEGUI::Font::drawText(), CEGUI::MultiLineEditbox::formatText(), CEGUI::Font::getFormattedLineCount(), CEGUI::Font::getFormattedTextExtent(), CEGUI::MultiLineEditbox::getNextTokenLength(), CEGUI::TextUtils::getNextWord(), CEGUI::TextUtils::getNextWordStartIdx(), CEGUI::MultiLineEditbox::onMouseTripleClicked(), and CEGUI::MultiColumnListProperties::ColumnHeader::set(). |
|
Find the last code point that is not one of a set of chars.
Definition at line 4587 of file CEGUIString.h. |
|
Find the last code point that is not one of a set of chars.
Definition at line 4518 of file CEGUIString.h. |
|
Search for the last code point that does not match a given code point.
Definition at line 4460 of file CEGUIString.h. |
|
Find the last code point that is not one of a set of code points.
Definition at line 4400 of file CEGUIString.h. |
|
Find the last code point that is not one of a set of code points.
Definition at line 4319 of file CEGUIString.h. |
|
Find the last code point that is not one of a set of code points.
Definition at line 4248 of file CEGUIString.h. |
|
Find the last code point that is not one of a set of code points.
Definition at line 4169 of file CEGUIString.h. References find(). Referenced by CEGUI::TextUtils::getWordStartIdx(), and CEGUI::TextUtils::trimTrailingChars(). |
|
Find the last occurrence of one of a set of chars.
Definition at line 4543 of file CEGUIString.h. |
|
Find the last occurrence of one of a set of chars.
Definition at line 4496 of file CEGUIString.h. |
|
Search for last occurrence of a given code point.
Definition at line 4441 of file CEGUIString.h. |
|
Find the last occurrence of one of a set of code points.
Definition at line 4349 of file CEGUIString.h. |
|
Find the last occurrence of one of a set of code points.
Definition at line 4292 of file CEGUIString.h. |
|
Find the last occurrence of one of a set of code points.
Definition at line 4209 of file CEGUIString.h. |
|
Find the last occurrence of one of a set of code points.
Definition at line 4134 of file CEGUIString.h. References find(). Referenced by CEGUI::TextUtils::getWordStartIdx(), and CEGUI::MultiLineEditbox::onMouseTripleClicked(). |
|
Inserts chars from the given char array at the specified position.
Definition at line 2309 of file CEGUIString.h. |
|
Inserts the given c-string at the specified position.
Definition at line 2284 of file CEGUIString.h. |
|
Inserts code points specified by the range [beg, end).
Definition at line 2262 of file CEGUIString.h. |
|
Inserts a single code point into the String.
Definition at line 2238 of file CEGUIString.h. |
|
Inserts a code point multiple times into the String.
Definition at line 2218 of file CEGUIString.h. |
|
Inserts a code point multiple times into the String.
Definition at line 2177 of file CEGUIString.h. |
|
Inserts the given utf8 encoded data at the specified position.
Definition at line 2139 of file CEGUIString.h. |
|
Inserts the given null-terminated utf8 encoded data at the specified position.
Definition at line 2109 of file CEGUIString.h. |
|
Inserts a sub-string of the given std::string object at the specified position.
Definition at line 2061 of file CEGUIString.h. |
|
Inserts the given std::string object at the specified position.
Definition at line 2030 of file CEGUIString.h. |
|
Inserts a sub-string of the given String object at the specified position.
Definition at line 1993 of file CEGUIString.h. References d_cplength, and ptr(). |
|
Inserts the given String object at the specified position.
Definition at line 1966 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 660 of file CEGUIString.h. |
|
Appends to the String the given c-string.
Definition at line 1888 of file CEGUIString.h. |
|
Appends a single code point to the string.
Definition at line 1800 of file CEGUIString.h. |
|
Appends to the String the null-terminated utf8 encoded data in the buffer utf8_str.
Definition at line 1722 of file CEGUIString.h. |
|
Appends the std::string std_str.
Definition at line 1655 of file CEGUIString.h. |
|
Appends the String str.
Definition at line 1600 of file CEGUIString.h. |
|
Assign to this String the given C-string.
Definition at line 1495 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 1447 of file CEGUIString.h. |
|
Assign to this String the string value represented by the given null-terminated utf8 encoded data.
Definition at line 1375 of file CEGUIString.h. |
|
Assign the value of std::string std_str to this String.
Definition at line 1310 of file CEGUIString.h. |
|
Assign the value of String str to this String.
Definition at line 1256 of file CEGUIString.h. |
|
Returns the code point at the given index.
Definition at line 1094 of file CEGUIString.h. |
|
Returns the code point at the given index.
Definition at line 1075 of file CEGUIString.h. |
|
Appends a single code point to the string.
Definition at line 1850 of file CEGUIString.h. |
|
Return a constant reverse iterator that describes the beginning of the String.
Definition at line 4708 of file CEGUIString.h. |
|
Return a reverse iterator that describes the beginning of the String.
Definition at line 4696 of file CEGUIString.h. |
|
Return a constant reverse iterator that describes the end of the String.
Definition at line 4732 of file CEGUIString.h. |
|
Return a reverse iterator that describes the end of the String.
Definition at line 4720 of file CEGUIString.h. |
|
Replace the code points in the range [beg, end) with chars from the given char array.
Definition at line 3122 of file CEGUIString.h. |
|
Replace code points in the String with chars from the given char array.
Definition at line 3070 of file CEGUIString.h. |
|
Replace the code points in the range [beg, end) with the specified c-string.
Definition at line 3042 of file CEGUIString.h. |
|
Replace code points in the String with the specified c-string.
Definition at line 3015 of file CEGUIString.h. |
|
Replace the code points in the range [beg, end) with code points from the range [newBeg, newEnd).
Definition at line 2966 of file CEGUIString.h. References CEGUI::String::const_iterator::d_ptr. |
|
Replace the code points in the range [beg, end) with occurrences of a given code point.
Definition at line 2936 of file CEGUIString.h. |
|
Replaces a specified range of code points with occurrences of a given code point.
Definition at line 2884 of file CEGUIString.h. |
|
Replace the code points in the range [beg, end) with the specified null-terminated utf8 encoded data.
Definition at line 2857 of file CEGUIString.h. |
|
Replace code points in the String with the specified utf8 encoded data.
Definition at line 2802 of file CEGUIString.h. |
|
Replace the code points in the range [beg, end) with the specified null-terminated utf8 encoded data.
Definition at line 2769 of file CEGUIString.h. |
|
Replace code points in the String with the specified null-terminated utf8 encoded data.
Definition at line 2737 of file CEGUIString.h. |
|
Replace code points in the String with a specified sub-string of a given std::string object.
Definition at line 2680 of file CEGUIString.h. |
|
Replace the code points in the range [beg, end) with the specified std::string object.
Definition at line 2646 of file CEGUIString.h. |
|
Replace code points in the String with the specified std::string object.
Definition at line 2616 of file CEGUIString.h. |
|
Replace code points in the String with a specified sub-string of a given String object.
Definition at line 2568 of file CEGUIString.h. References d_cplength, and ptr(). |
|
Replace the code points in the range [beg, end) with the specified String object.
Definition at line 2538 of file CEGUIString.h. |
|
Replace code points in the String with the specified String object.
Definition at line 2512 of file CEGUIString.h. |
|
Specifies the amount of reserve capacity to allocate.
Definition at line 698 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 2477 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 2457 of file CEGUIString.h. Referenced by CEGUI::MultiLineEditbox::setMaxTextLength(), CEGUI::Editbox::setMaxTextLength(), and CEGUI::TextUtils::trimTrailingChars(). |
|
Search backwards for a sub-string.
Definition at line 3621 of file CEGUIString.h. |
|
Search backwards for a sub-string.
Definition at line 3552 of file CEGUIString.h. |
|
Search backwards for a sub-string.
Definition at line 3486 of file CEGUIString.h. |
|
Search backwards for a sub-string.
Definition at line 3405 of file CEGUIString.h. |
|
Search backwards for a sub-string.
Definition at line 3332 of file CEGUIString.h. |
|
Search backwards for a sub-string.
Definition at line 3251 of file CEGUIString.h. References d_cplength. |
|
Search backwards for a given code point.
Definition at line 3178 of file CEGUIString.h. Referenced by CEGUI::XercesParser::initialiseSchema(). |
|
Returns the size of the String in code points.
Definition at line 622 of file CEGUIString.h. |
|
Returns a substring of this String.
Definition at line 4630 of file CEGUIString.h. Referenced by CEGUI::MultiLineEditbox::cacheTextLines(), 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::MultiColumnListProperties::ColumnHeader::set(). |
|
Swaps the value of this String with the given String str.
Definition at line 1559 of file CEGUIString.h. References d_buffer, d_cplength, d_quickbuff, d_reserve, and STR_QUICKBUFF_SIZE. 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 1231 of file CEGUIString.h. References ceguimin. |
|