Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Ogre::UTFString Class Reference

A UTF-16 string with implicit conversion to/from std::string and std::wstring. More...

#include <OgreUTFString.h>

List of all members.

Public Types

typedef size_t size_type
 size type used to indicate string size and character positions within the string
typedef uint32 unicode_char
 a single 32-bit Unicode character
typedef uint16 code_point
 a single UTF-16 code point
typedef code_point value_type
 value type typedef for use in iterators
typedef std::basic_string<
code_point
dstring
typedef std::basic_string<
unicode_char
utf32string
 string type used for returning UTF-32 formatted data
typedef _fwd_iterator iterator
 iterator
typedef _rev_iterator reverse_iterator
 reverse iterator
typedef _const_fwd_iterator const_iterator
 const iterator
typedef _const_rev_iterator const_reverse_iterator
 const reverse iterator

Public Member Functions

Constructors/Destructor
 UTFString ()
 default constructor, creates an empty string
 UTFString (const UTFString &copy)
 copy constructor
 UTFString (size_type length, const code_point &ch)
 length copies of ch
 UTFString (const code_point *str)
 duplicate of nul-terminated sequence str
 UTFString (const code_point *str, size_type length)
 duplicate of str, length code points long
 UTFString (const UTFString &str, size_type index, size_type length)
 substring of str starting at index and length code points long
 UTFString (const wchar_t *w_str)
 duplicate of nul-terminated wchar_t array
 UTFString (const wchar_t *w_str, size_type length)
 duplicate of w_str, length characters long
 UTFString (const std::wstring &wstr)
 duplicate of wstr
 UTFString (const char *c_str)
 duplicate of nul-terminated C-string c_str (UTF-8 encoding)
 UTFString (const char *c_str, size_type length)
 duplicate of c_str, length characters long (UTF-8 encoding)
 UTFString (const std::string &str)
 duplicate of str (UTF-8 encoding)
 ~UTFString ()
 destructor
Utility functions
size_type size () const
 Returns the number of code points in the current string.
size_type length () const
 Returns the number of code points in the current string.
size_type length_Characters () const
 Returns the number of Unicode characters in the string.
size_type max_size () const
 returns the maximum number of UTF-16 code points that the string can hold
void reserve (size_type size)
 sets the capacity of the string to at least size code points
void resize (size_type num, const code_point &val=0)
 changes the size of the string to size, filling in any new area with val
void swap (UTFString &from)
 exchanges the elements of the current string with those of from
bool empty () const
 returns true if the string has no elements, false otherwise
const code_pointc_str () const
 returns a pointer to the first character in the current string
const code_pointdata () const
 returns a pointer to the first character in the current string
size_type capacity () const
 returns the number of elements that the string can hold before it will need to allocate more space
void clear ()
 deletes all of the elements in the string
UTFString substr (size_type index, size_type num=npos) const
 returns a substring of the current string, starting at index, and num characters long.
void push_back (unicode_char val)
 appends val to the end of the string
void push_back (wchar_t val)
 appends val to the end of the string
void push_back (code_point val)
 appends val to the end of the string
void push_back (char val)
 appends val to the end of the string
bool inString (unicode_char ch) const
 returns true if the given Unicode character ch is in this string
Stream variations
const std::string & asUTF8 () const
 returns the current string in UTF-8 form within a std::string
const char * asUTF8_c_str () const
 returns the current string in UTF-8 form as a nul-terminated char array
const utf32stringasUTF32 () const
 returns the current string in UTF-32 form within a utf32string
const unicode_charasUTF32_c_str () const
 returns the current string in UTF-32 form as a nul-terminated unicode_char array
const std::wstring & asWStr () const
 returns the current string in the native form of std::wstring
const wchar_t * asWStr_c_str () const
 returns the current string in the native form of a nul-terminated wchar_t array
Single Character Access
code_pointat (size_type loc)
 returns a reference to the element in the string at index loc
const code_pointat (size_type loc) const
 returns a reference to the element in the string at index loc
unicode_char getChar (size_type loc) const
 returns the data point loc evaluated as a UTF-32 value
int setChar (size_type loc, unicode_char ch)
 sets the value of the character at loc to the Unicode value ch (UTF-32)
iterator acquisition
iterator begin ()
 returns an iterator to the first element of the string
const_iterator begin () const
 returns an iterator to the first element of the string
iterator end ()
 returns an iterator just past the end of the string
const_iterator end () const
 returns an iterator just past the end of the string
reverse_iterator rbegin ()
 returns a reverse iterator to the last element of the string
const_reverse_iterator rbegin () const
 returns a reverse iterator to the last element of the string
reverse_iterator rend ()
 returns a reverse iterator just past the beginning of the string
const_reverse_iterator rend () const
 returns a reverse iterator just past the beginning of the string
assign
UTFStringassign (iterator start, iterator end)
 gives the current string the values from start to end
UTFStringassign (const UTFString &str)
 assign str to the current string
UTFStringassign (const code_point *str)
 assign the nul-terminated str to the current string
UTFStringassign (const code_point *str, size_type num)
 assign the first num characters of str to the current string
UTFStringassign (const UTFString &str, size_type index, size_type len)
 assign len entries from str to the current string, starting at index
UTFStringassign (size_type num, const code_point &ch)
 assign num copies of ch to the current string
UTFStringassign (const std::wstring &wstr)
 assign wstr to the current string (wstr is treated as a UTF-16 stream)
UTFStringassign (const wchar_t *w_str)
 assign w_str to the current string
UTFStringassign (const wchar_t *w_str, size_type num)
 assign the first num characters of w_str to the current string
UTFStringassign (const std::string &str)
 assign str to the current string (str is treated as a UTF-8 stream)
UTFStringassign (const char *c_str)
 assign c_str to the current string (c_str is treated as a UTF-8 stream)
UTFStringassign (const char *c_str, size_type num)
 assign the first num characters of c_str to the current string (c_str is treated as a UTF-8 stream)
append
UTFStringappend (const UTFString &str)
 appends str on to the end of the current string
UTFStringappend (const code_point *str)
 appends str on to the end of the current string
UTFStringappend (const UTFString &str, size_type index, size_type len)
 appends a substring of str starting at index that is len characters long on to the end of the current string
UTFStringappend (const code_point *str, size_type num)
 appends num characters of str on to the end of the current string
UTFStringappend (size_type num, code_point ch)
 appends num repetitions of ch on to the end of the current string
UTFStringappend (iterator start, iterator end)
 appends the sequence denoted by start and end on to the end of the current string
UTFStringappend (const wchar_t *w_str, size_type num)
 appends num characters of str on to the end of the current string
UTFStringappend (size_type num, wchar_t ch)
 appends num repetitions of ch on to the end of the current string
UTFStringappend (const char *c_str, size_type num)
 appends num characters of str on to the end of the current string (UTF-8 encoding)
UTFStringappend (size_type num, char ch)
 appends num repetitions of ch on to the end of the current string (Unicode values less than 128)
UTFStringappend (size_type num, unicode_char ch)
 appends num repetitions of ch on to the end of the current string (Full Unicode spectrum)
insert
iterator insert (iterator i, const code_point &ch)
 inserts ch before the code point denoted by i
UTFStringinsert (size_type index, const UTFString &str)
 inserts str into the current string, at location index
UTFStringinsert (size_type index, const code_point *str)
 inserts str into the current string, at location index
UTFStringinsert (size_type index1, const UTFString &str, size_type index2, size_type num)
 inserts a substring of str (starting at index2 and num code points long) into the current string, at location index1
void insert (iterator i, iterator start, iterator end)
 inserts the code points denoted by start and end into the current string, before the code point specified by i
UTFStringinsert (size_type index, const code_point *str, size_type num)
 inserts num code points of str into the current string, at location index
UTFStringinsert (size_type index, const wchar_t *w_str, size_type num)
 inserts num code points of str into the current string, at location index
UTFStringinsert (size_type index, const char *c_str, size_type num)
 inserts num code points of str into the current string, at location index
UTFStringinsert (size_type index, size_type num, code_point ch)
 inserts num copies of ch into the current string, at location index
UTFStringinsert (size_type index, size_type num, wchar_t ch)
 inserts num copies of ch into the current string, at location index
UTFStringinsert (size_type index, size_type num, char ch)
 inserts num copies of ch into the current string, at location index
UTFStringinsert (size_type index, size_type num, unicode_char ch)
 inserts num copies of ch into the current string, at location index
void insert (iterator i, size_type num, const code_point &ch)
 inserts num copies of ch into the current string, before the code point denoted by i
void insert (iterator i, size_type num, const wchar_t &ch)
 inserts num copies of ch into the current string, before the code point denoted by i
void insert (iterator i, size_type num, const char &ch)
 inserts num copies of ch into the current string, before the code point denoted by i
void insert (iterator i, size_type num, const unicode_char &ch)
 inserts num copies of ch into the current string, before the code point denoted by i
erase
iterator erase (iterator loc)
 removes the code point pointed to by loc, returning an iterator to the next character
iterator erase (iterator start, iterator end)
 removes the code points between start and end (including the one at start but not the one at end), returning an iterator to the code point after the last code point removed
UTFStringerase (size_type index=0, size_type num=npos)
 removes num code points from the current string, starting at index
replace
UTFStringreplace (size_type index1, size_type num1, const UTFString &str)
 replaces up to num1 code points of the current string (starting at index1) with str
UTFStringreplace (size_type index1, size_type num1, const UTFString &str, size_type num2)
 replaces up to num1 code points of the current string (starting at index1) with up to num2 code points from str
UTFStringreplace (size_type index1, size_type num1, const UTFString &str, size_type index2, size_type num2)
 replaces up to num1 code points of the current string (starting at index1) with up to num2 code points from str beginning at index2
UTFStringreplace (iterator start, iterator end, const UTFString &str, size_type num=npos)
 replaces code points in the current string from start to end with num code points from str
UTFStringreplace (size_type index, size_type num1, size_type num2, code_point ch)
 replaces up to num1 code points in the current string (beginning at index) with num2 copies of ch
UTFStringreplace (iterator start, iterator end, size_type num, code_point ch)
 replaces the code points in the current string from start to end with num copies of ch
compare
int compare (const UTFString &str) const
 compare str to the current string
int compare (const code_point *str) const
 compare str to the current string
int compare (size_type index, size_type length, const UTFString &str) const
 compare str to a substring of the current string, starting at index for length characters
int compare (size_type index, size_type length, const UTFString &str, size_type index2, size_type length2) const
 compare a substring of str to a substring of the current string, where index2 and length2 refer to str and index and length refer to the current string
int compare (size_type index, size_type length, const code_point *str, size_type length2) const
 compare a substring of str to a substring of the current string, where the substring of str begins at zero and is length2 characters long, and the substring of the current string begins at index and is length characters long
int compare (size_type index, size_type length, const wchar_t *w_str, size_type length2) const
 compare a substring of str to a substring of the current string, where the substring of str begins at zero and is length2 elements long, and the substring of the current string begins at index and is length characters long
int compare (size_type index, size_type length, const char *c_str, size_type length2) const
 compare a substring of str to a substring of the current string, where the substring of str begins at zero and is length2 UTF-8 code points long, and the substring of the current string begins at index and is length characters long
find & rfind
size_type find (const UTFString &str, size_type index=0) const
 returns the index of the first occurrence of str within the current string, starting at index; returns UTFString::npos if nothing is found
size_type find (const code_point *cp_str, size_type index, size_type length) const
 returns the index of the first occurrence of str within the current string and within length code points, starting at index; returns UTFString::npos if nothing is found
size_type find (const char *c_str, size_type index, size_type length) const
 returns the index of the first occurrence of str within the current string and within length code points, starting at index; returns UTFString::npos if nothing is found
size_type find (const wchar_t *w_str, size_type index, size_type length) const
 returns the index of the first occurrence of str within the current string and within length code points, starting at index; returns UTFString::npos if nothing is found
size_type find (char ch, size_type index=0) const
 returns the index of the first occurrence ch within the current string, starting at index; returns UTFString::npos if nothing is found
size_type find (code_point ch, size_type index=0) const
 returns the index of the first occurrence ch within the current string, starting at index; returns UTFString::npos if nothing is found
size_type find (wchar_t ch, size_type index=0) const
 returns the index of the first occurrence ch within the current string, starting at index; returns UTFString::npos if nothing is found
size_type find (unicode_char ch, size_type index=0) const
 returns the index of the first occurrence ch within the current string, starting at index; returns UTFString::npos if nothing is found
size_type rfind (const UTFString &str, size_type index=0) const
 returns the location of the first occurrence of str in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found
size_type rfind (const code_point *cp_str, size_type index, size_type num) const
 returns the location of the first occurrence of str in the current string, doing a reverse search from index, searching at most num characters; returns UTFString::npos if nothing is found
size_type rfind (const char *c_str, size_type index, size_type num) const
 returns the location of the first occurrence of str in the current string, doing a reverse search from index, searching at most num characters; returns UTFString::npos if nothing is found
size_type rfind (const wchar_t *w_str, size_type index, size_type num) const
 returns the location of the first occurrence of str in the current string, doing a reverse search from index, searching at most num characters; returns UTFString::npos if nothing is found
size_type rfind (char ch, size_type index=0) const
 returns the location of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found
size_type rfind (code_point ch, size_type index) const
 returns the location of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found
size_type rfind (wchar_t ch, size_type index=0) const
 returns the location of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found
size_type rfind (unicode_char ch, size_type index=0) const
 returns the location of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found
find_first/last_(not)_of
size_type find_first_of (const UTFString &str, size_type index=0, size_type num=npos) const
 Returns the index of the first character within the current string that matches any character in str, beginning the search at index and searching at most num characters; returns UTFString::npos if nothing is found.
size_type find_first_of (code_point ch, size_type index=0) const
 returns the index of the first occurrence of ch in the current string, starting the search at index; returns UTFString::npos if nothing is found
size_type find_first_of (char ch, size_type index=0) const
 returns the index of the first occurrence of ch in the current string, starting the search at index; returns UTFString::npos if nothing is found
size_type find_first_of (wchar_t ch, size_type index=0) const
 returns the index of the first occurrence of ch in the current string, starting the search at index; returns UTFString::npos if nothing is found
size_type find_first_of (unicode_char ch, size_type index=0) const
 returns the index of the first occurrence of ch in the current string, starting the search at index; returns UTFString::npos if nothing is found
size_type find_first_not_of (const UTFString &str, size_type index=0, size_type num=npos) const
 returns the index of the first character within the current string that does not match any character in str, beginning the search at index and searching at most num characters; returns UTFString::npos if nothing is found
size_type find_first_not_of (code_point ch, size_type index=0) const
 returns the index of the first character within the current string that does not match ch, starting the search at index; returns UTFString::npos if nothing is found
size_type find_first_not_of (char ch, size_type index=0) const
 returns the index of the first character within the current string that does not match ch, starting the search at index; returns UTFString::npos if nothing is found
size_type find_first_not_of (wchar_t ch, size_type index=0) const
 returns the index of the first character within the current string that does not match ch, starting the search at index; returns UTFString::npos if nothing is found
size_type find_first_not_of (unicode_char ch, size_type index=0) const
 returns the index of the first character within the current string that does not match ch, starting the search at index; returns UTFString::npos if nothing is found
size_type find_last_of (const UTFString &str, size_type index=npos, size_type num=npos) const
 returns the index of the first character within the current string that matches any character in str, doing a reverse search from index and searching at most num characters; returns UTFString::npos if nothing is found
size_type find_last_of (code_point ch, size_type index=npos) const
 returns the index of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found
size_type find_last_of (char ch, size_type index=npos) const
 returns the index of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found
size_type find_last_of (wchar_t ch, size_type index=npos) const
 returns the index of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found
size_type find_last_of (unicode_char ch, size_type index=npos) const
 returns the index of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found
size_type find_last_not_of (const UTFString &str, size_type index=npos, size_type num=npos) const
 returns the index of the last character within the current string that does not match any character in str, doing a reverse search from index; returns UTFString::npos if nothing is found
size_type find_last_not_of (code_point ch, size_type index=npos) const
 returns the index of the last occurrence of a character that does not match ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found
size_type find_last_not_of (char ch, size_type index=npos) const
 returns the index of the last occurrence of a character that does not match ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found
size_type find_last_not_of (wchar_t ch, size_type index=npos) const
 returns the index of the last occurrence of a character that does not match ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found
size_type find_last_not_of (unicode_char ch, size_type index=npos) const
 returns the index of the last occurrence of a character that does not match ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found
Operators
bool operator< (const UTFString &right) const
 less than operator
bool operator<= (const UTFString &right) const
 less than or equal operator
bool operator> (const UTFString &right) const
 greater than operator
bool operator>= (const UTFString &right) const
 greater than or equal operator
bool operator== (const UTFString &right) const
 equality operator
bool operator!= (const UTFString &right) const
 inequality operator
UTFStringoperator= (const UTFString &s)
 assignment operator, implicitly casts all compatible types
UTFStringoperator= (code_point ch)
 assignment operator
UTFStringoperator= (char ch)
 assignment operator
UTFStringoperator= (wchar_t ch)
 assignment operator
UTFStringoperator= (unicode_char ch)
 assignment operator
code_pointoperator[] (size_type index)
 code point dereference operator
const code_pointoperator[] (size_type index) const
 code point dereference operator
Implicit Cast Operators
 operator std::string () const
 implicit cast to std::string
 operator std::wstring () const
 implicit cast to std::wstring

Static Public Member Functions

UTF-16 character encoding/decoding
static bool _utf16_independent_char (code_point cp)
 returns true if cp does not match the signature for the lead of follow code point of a surrogate pair in a UTF-16 sequence
static bool _utf16_surrogate_lead (code_point cp)
 returns true if cp matches the signature of a surrogate pair lead character
static bool _utf16_surrogate_follow (code_point cp)
 returns true if cp matches the signature of a surrogate pair following character
static size_t _utf16_char_length (code_point cp)
 estimates the number of UTF-16 code points in the sequence starting with cp
static size_t _utf16_char_length (unicode_char uc)
 returns the number of UTF-16 code points needed to represent the given UTF-32 character cp
static size_t _utf16_to_utf32 (const code_point in_cp[2], unicode_char &out_uc)
 converts the given UTF-16 character buffer in_cp to a single UTF-32 Unicode character out_uc, returns the number of code points used to create the output character (2 for surrogate pairs, otherwise 1)
static size_t _utf32_to_utf16 (const unicode_char &in_uc, code_point out_cp[2])
 writes the given UTF-32 uc_in to the buffer location out_cp using UTF-16 encoding, returns the number of code points used to encode the input (always 1 or 2)
UTF-8 character encoding/decoding
static bool _utf8_start_char (unsigned char cp)
 returns true if cp is the beginning of a UTF-8 sequence
static size_t _utf8_char_length (unsigned char cp)
 estimates the number of UTF-8 code points in the sequence starting with cp
static size_t _utf8_char_length (unicode_char uc)
 returns the number of UTF-8 code points needed to represent the given UTF-32 character cp
static size_t _utf8_to_utf32 (const unsigned char in_cp[6], unicode_char &out_uc)
 converts the given UTF-8 character buffer to a single UTF-32 Unicode character, returns the number of bytes used to create the output character (maximum of 6)
static size_t _utf32_to_utf8 (const unicode_char &in_uc, unsigned char out_cp[6])
 writes the given UTF-32 uc_in to the buffer location out_cp using UTF-8 encoding, returns the number of bytes used to encode the input
static size_type _verifyUTF8 (const unsigned char *c_str)
 verifies a UTF-8 stream, returning the total number of Unicode characters found
static size_type _verifyUTF8 (const std::string &str)
 verifies a UTF-8 stream, returning the total number of Unicode characters found

Static Public Attributes

static const size_type npos = ~0
 the usual constant representing: not found, no limit, etc

Private Types

enum  BufferType { bt_none, bt_string, bt_wstring, bt_utf32string }
 buffer data type identifier More...

Private Member Functions

void _init ()
 common constructor operations
void _cleanBuffer () const
 auto cleans the scratch buffer using the proper delete for the stored type
void _getBufferStr () const
 create a std::string in the scratch buffer area
void _getBufferWStr () const
 create a std::wstring in the scratch buffer area
void _getBufferUTF32Str () const
 create a utf32string in the scratch buffer area
void _load_buffer_UTF8 () const
void _load_buffer_WStr () const
void _load_buffer_UTF32 () const

Private Attributes

dstring mData
BufferType m_bufferType
size_t m_bufferSize
union {
   void *   mVoidBuffer
   std::string *   mStrBuffer
   std::wstring *   mWStrBuffer
   utf32string *   mUTF32StrBuffer
m_buffer

Static Private Attributes

static const unsigned char _lead1 = 0xC0
static const unsigned char _lead1_mask = 0x1F
static const unsigned char _lead2 = 0xE0
static const unsigned char _lead2_mask = 0x0F
static const unsigned char _lead3 = 0xF0
static const unsigned char _lead3_mask = 0x07
static const unsigned char _lead4 = 0xF8
static const unsigned char _lead4_mask = 0x03
static const unsigned char _lead5 = 0xFC
static const unsigned char _lead5_mask = 0x01
static const unsigned char _cont = 0x80
static const unsigned char _cont_mask = 0x3F

Classes

class  _base_iterator
 base iterator class for UTFString More...
class  _const_fwd_iterator
 const forward iterator for UTFString More...
class  _const_rev_iterator
 const reverse iterator for UTFString More...
class  _fwd_iterator
 forward iterator for UTFString More...
class  _rev_iterator
 forward iterator for UTFString More...
class  invalid_data
 This exception is used when invalid data streams are encountered. More...


Detailed Description

A UTF-16 string with implicit conversion to/from std::string and std::wstring.

This class provides a complete 1 to 1 map of most std::string functions (at least to my knowledge). Implicit conversions allow this string class to work with all common C++ string formats, with specialty functions defined where implicit conversion would cause potential problems or is otherwise unavailable.

Some additional functionality is present to assist in working with characters using the 32-bit UTF-32 encoding. (Which is guaranteed to fit any Unicode character into a single code point.) Note: Reverse iterators do not have this functionality due to the ambiguity that surrounds working with UTF-16 in reverse. (Such as, where should an iterator point to represent the beginning of a surrogate pair?)

Supported Input Types
The supported string types for input, and their assumed encoding schemes, are:
See also:

Definition at line 161 of file OgreUTFString.h.


Member Typedef Documentation

typedef uint16 Ogre::UTFString::code_point
 

a single UTF-16 code point

Definition at line 186 of file OgreUTFString.h.

typedef _const_fwd_iterator Ogre::UTFString::const_iterator
 

const iterator

Definition at line 803 of file OgreUTFString.h.

typedef _const_rev_iterator Ogre::UTFString::const_reverse_iterator
 

const reverse iterator

Definition at line 804 of file OgreUTFString.h.

typedef std::basic_string<code_point> Ogre::UTFString::dstring
 

Definition at line 191 of file OgreUTFString.h.

typedef _fwd_iterator Ogre::UTFString::iterator
 

iterator

Definition at line 801 of file OgreUTFString.h.

typedef _rev_iterator Ogre::UTFString::reverse_iterator
 

reverse iterator

Definition at line 802 of file OgreUTFString.h.

typedef size_t Ogre::UTFString::size_type
 

size type used to indicate string size and character positions within the string

Definition at line 178 of file OgreUTFString.h.

typedef uint32 Ogre::UTFString::unicode_char
 

a single 32-bit Unicode character

Definition at line 183 of file OgreUTFString.h.

typedef std::basic_string<unicode_char> Ogre::UTFString::utf32string
 

string type used for returning UTF-32 formatted data

Definition at line 194 of file OgreUTFString.h.

typedef code_point Ogre::UTFString::value_type
 

value type typedef for use in iterators

Definition at line 189 of file OgreUTFString.h.


Member Enumeration Documentation

enum Ogre::UTFString::BufferType [private]
 

buffer data type identifier

Enumeration values:
bt_none 
bt_string 
bt_wstring 
bt_utf32string 

Definition at line 2168 of file OgreUTFString.h.


Constructor & Destructor Documentation

Ogre::UTFString::UTFString  ) 
 

default constructor, creates an empty string

Definition at line 810 of file OgreUTFString.h.

References _init().

Referenced by find(), find_first_not_of(), find_first_of(), find_last_not_of(), find_last_of(), and rfind().

Ogre::UTFString::UTFString const UTFString copy  ) 
 

copy constructor

Definition at line 814 of file OgreUTFString.h.

References _init(), and mData.

Ogre::UTFString::UTFString size_type  length,
const code_point ch
 

length copies of ch

Definition at line 819 of file OgreUTFString.h.

References _init(), and assign().

Ogre::UTFString::UTFString const code_point str  ) 
 

duplicate of nul-terminated sequence str

Definition at line 824 of file OgreUTFString.h.

References _init(), and assign().

Ogre::UTFString::UTFString const code_point str,
size_type  length
 

duplicate of str, length code points long

Definition at line 829 of file OgreUTFString.h.

References _init(), and assign().

Ogre::UTFString::UTFString const UTFString str,
size_type  index,
size_type  length
 

substring of str starting at index and length code points long

Definition at line 834 of file OgreUTFString.h.

References _init(), and assign().

Ogre::UTFString::UTFString const wchar_t *  w_str  ) 
 

duplicate of nul-terminated wchar_t array

Definition at line 840 of file OgreUTFString.h.

References _init(), and assign().

Ogre::UTFString::UTFString const wchar_t *  w_str,
size_type  length
 

duplicate of w_str, length characters long

Definition at line 845 of file OgreUTFString.h.

References _init(), and assign().

Ogre::UTFString::UTFString const std::wstring &  wstr  ) 
 

duplicate of wstr

Definition at line 851 of file OgreUTFString.h.

References _init(), and assign().

Ogre::UTFString::UTFString const char *  c_str  ) 
 

duplicate of nul-terminated C-string c_str (UTF-8 encoding)

Definition at line 856 of file OgreUTFString.h.

References _init(), assign(), and c_str().

Ogre::UTFString::UTFString const char *  c_str,
size_type  length
 

duplicate of c_str, length characters long (UTF-8 encoding)

Definition at line 861 of file OgreUTFString.h.

References _init(), assign(), and c_str().

Ogre::UTFString::UTFString const std::string &  str  ) 
 

duplicate of str (UTF-8 encoding)

Definition at line 866 of file OgreUTFString.h.

References _init(), and assign().

Ogre::UTFString::~UTFString  ) 
 

destructor

Definition at line 871 of file OgreUTFString.h.

References _cleanBuffer().


Member Function Documentation

void Ogre::UTFString::_cleanBuffer  )  const [private]
 

auto cleans the scratch buffer using the proper delete for the stored type

Definition at line 2185 of file OgreUTFString.h.

Referenced by ~UTFString().

void Ogre::UTFString::_getBufferStr  )  const [private]
 

create a std::string in the scratch buffer area

Definition at line 2211 of file OgreUTFString.h.

void Ogre::UTFString::_getBufferUTF32Str  )  const [private]
 

create a utf32string in the scratch buffer area

Definition at line 2229 of file OgreUTFString.h.

void Ogre::UTFString::_getBufferWStr  )  const [private]
 

create a std::wstring in the scratch buffer area

Definition at line 2220 of file OgreUTFString.h.

void Ogre::UTFString::_init  )  [private]
 

common constructor operations

Definition at line 2176 of file OgreUTFString.h.

Referenced by UTFString().

void Ogre::UTFString::_load_buffer_UTF32  )  const [private]
 

Definition at line 2275 of file OgreUTFString.h.

References Ogre::UTFString::_const_fwd_iterator::getCharacter(), and Ogre::UTFString::_const_fwd_iterator::moveNext().

Referenced by asUTF32(), and asUTF32_c_str().

void Ogre::UTFString::_load_buffer_UTF8  )  const [private]
 

Definition at line 2238 of file OgreUTFString.h.

References Ogre::UTFString::_const_fwd_iterator::getCharacter(), and Ogre::UTFString::_const_fwd_iterator::moveNext().

Referenced by asUTF8(), and asUTF8_c_str().

void Ogre::UTFString::_load_buffer_WStr  )  const [private]
 

Definition at line 2257 of file OgreUTFString.h.

References Ogre::UTFString::_const_fwd_iterator::getCharacter(), and Ogre::UTFString::_const_fwd_iterator::moveNext().

Referenced by asWStr(), and asWStr_c_str().

static size_t Ogre::UTFString::_utf16_char_length unicode_char  uc  )  [static]
 

returns the number of UTF-16 code points needed to represent the given UTF-32 character cp

Definition at line 1919 of file OgreUTFString.h.

static size_t Ogre::UTFString::_utf16_char_length code_point  cp  )  [static]
 

estimates the number of UTF-16 code points in the sequence starting with cp

Definition at line 1913 of file OgreUTFString.h.

Referenced by find_first_not_of(), find_first_of(), getChar(), and setChar().

static bool Ogre::UTFString::_utf16_independent_char code_point  cp  )  [static]
 

returns true if cp does not match the signature for the lead of follow code point of a surrogate pair in a UTF-16 sequence

Definition at line 1895 of file OgreUTFString.h.

static bool Ogre::UTFString::_utf16_surrogate_follow code_point  cp  )  [static]
 

returns true if cp matches the signature of a surrogate pair following character

Definition at line 1907 of file OgreUTFString.h.

Referenced by Ogre::UTFString::_base_iterator::_moveNext(), Ogre::UTFString::_base_iterator::_movePrev(), find_last_not_of(), and find_last_of().

static bool Ogre::UTFString::_utf16_surrogate_lead code_point  cp  )  [static]
 

returns true if cp matches the signature of a surrogate pair lead character

Definition at line 1901 of file OgreUTFString.h.

Referenced by Ogre::UTFString::_base_iterator::_moveNext(), Ogre::UTFString::_base_iterator::_movePrev(), find_last_not_of(), and find_last_of().

static size_t Ogre::UTFString::_utf16_to_utf32 const code_point  in_cp[2],
unicode_char out_uc
[static]
 

converts the given UTF-16 character buffer in_cp to a single UTF-32 Unicode character out_uc, returns the number of code points used to create the output character (2 for surrogate pairs, otherwise 1)

This function does it's best to prevent error conditions, verifying complete surrogate pairs before applying the algorithm. In the event that half of a pair is found it will happily generate a value in the 0xD800 - 0xDFFF range, which is normally an invalid Unicode value but we preserve them for use as sentinel values.

Definition at line 1929 of file OgreUTFString.h.

Referenced by getChar().

static size_t Ogre::UTFString::_utf32_to_utf16 const unicode_char in_uc,
code_point  out_cp[2]
[static]
 

writes the given UTF-32 uc_in to the buffer location out_cp using UTF-16 encoding, returns the number of code points used to encode the input (always 1 or 2)

This function, like its counterpart, will happily create invalid UTF-16 surrogate pairs. These invalid entries will be created for any value of in_uc that falls in the range U+D800 - U+DFFF. These are generally useful as sentinel values to represent various program specific conditions.

Note:
This function will also pass through any single UTF-16 code point without modification, making it a safe method of ensuring a stream that is unknown UTF-32 or UTF-16 is truly UTF-16.

Definition at line 1962 of file OgreUTFString.h.

Referenced by append(), assign(), find(), find_first_not_of(), find_first_of(), find_last_not_of(), find_last_of(), insert(), push_back(), rfind(), and setChar().

static size_t Ogre::UTFString::_utf32_to_utf8 const unicode_char in_uc,
unsigned char  out_cp[6]
[static]
 

writes the given UTF-32 uc_in to the buffer location out_cp using UTF-8 encoding, returns the number of bytes used to encode the input

Definition at line 2061 of file OgreUTFString.h.

static size_t Ogre::UTFString::_utf8_char_length unicode_char  uc  )  [static]
 

returns the number of UTF-8 code points needed to represent the given UTF-32 character cp

Definition at line 2004 of file OgreUTFString.h.

static size_t Ogre::UTFString::_utf8_char_length unsigned char  cp  )  [static]
 

estimates the number of UTF-8 code points in the sequence starting with cp

Definition at line 1994 of file OgreUTFString.h.

Referenced by assign().

static bool Ogre::UTFString::_utf8_start_char unsigned char  cp  )  [static]
 

returns true if cp is the beginning of a UTF-8 sequence

Definition at line 1990 of file OgreUTFString.h.

static size_t Ogre::UTFString::_utf8_to_utf32 const unsigned char  in_cp[6],
unicode_char out_uc
[static]
 

converts the given UTF-8 character buffer to a single UTF-32 Unicode character, returns the number of bytes used to create the output character (maximum of 6)

Definition at line 2023 of file OgreUTFString.h.

Referenced by assign().

static size_type Ogre::UTFString::_verifyUTF8 const std::string &  str  )  [static]
 

verifies a UTF-8 stream, returning the total number of Unicode characters found

Definition at line 2104 of file OgreUTFString.h.

References end().

static size_type Ogre::UTFString::_verifyUTF8 const unsigned char *  c_str  )  [static]
 

verifies a UTF-8 stream, returning the total number of Unicode characters found

Definition at line 2099 of file OgreUTFString.h.

Referenced by assign().

UTFString& Ogre::UTFString::append size_type  num,
unicode_char  ch
 

appends num repetitions of ch on to the end of the current string (Full Unicode spectrum)

Definition at line 1320 of file OgreUTFString.h.

References _utf32_to_utf16(), and append().

UTFString& Ogre::UTFString::append size_type  num,
char  ch
 

appends num repetitions of ch on to the end of the current string (Unicode values less than 128)

Definition at line 1315 of file OgreUTFString.h.

References append().

UTFString& Ogre::UTFString::append const char *  c_str,
size_type  num
 

appends num characters of str on to the end of the current string (UTF-8 encoding)

Definition at line 1309 of file OgreUTFString.h.

References append(), and c_str().

UTFString& Ogre::UTFString::append size_type  num,
wchar_t  ch
 

appends num repetitions of ch on to the end of the current string

Definition at line 1304 of file OgreUTFString.h.

References append().

UTFString& Ogre::UTFString::append const wchar_t *  w_str,
size_type  num
 

appends num characters of str on to the end of the current string

Definition at line 1299 of file OgreUTFString.h.

References append().

UTFString& Ogre::UTFString::append iterator  start,
iterator  end
 

appends the sequence denoted by start and end on to the end of the current string

Definition at line 1293 of file OgreUTFString.h.

References append(), mData, and Ogre::UTFString::_base_iterator::mIter.

UTFString& Ogre::UTFString::append size_type  num,
code_point  ch
 

appends num repetitions of ch on to the end of the current string

Definition at line 1288 of file OgreUTFString.h.

References append(), and mData.

UTFString& Ogre::UTFString::append const code_point str,
size_type  num
 

appends num characters of str on to the end of the current string

Definition at line 1283 of file OgreUTFString.h.

References append(), and mData.

UTFString& Ogre::UTFString::append const UTFString str,
size_type  index,
size_type  len
 

appends a substring of str starting at index that is len characters long on to the end of the current string

Definition at line 1278 of file OgreUTFString.h.

References append(), and mData.

UTFString& Ogre::UTFString::append const code_point str  ) 
 

appends str on to the end of the current string

Definition at line 1273 of file OgreUTFString.h.

References append(), and mData.

UTFString& Ogre::UTFString::append const UTFString str  ) 
 

appends str on to the end of the current string

Definition at line 1268 of file OgreUTFString.h.

References mData.

Referenced by append(), assign(), Ogre::operator+(), and operator=().

UTFString& Ogre::UTFString::assign const char *  c_str,
size_type  num
 

assign the first num characters of c_str to the current string (c_str is treated as a UTF-8 stream)

Definition at line 1256 of file OgreUTFString.h.

References assign(), and c_str().

UTFString& Ogre::UTFString::assign const char *  c_str  ) 
 

assign c_str to the current string (c_str is treated as a UTF-8 stream)

Definition at line 1251 of file OgreUTFString.h.

References assign(), and c_str().

UTFString& Ogre::UTFString::assign const std::string &  str  ) 
 

assign str to the current string (str is treated as a UTF-8 stream)

Definition at line 1219 of file OgreUTFString.h.

References _utf32_to_utf16(), _utf8_char_length(), _utf8_to_utf32(), _verifyUTF8(), append(), clear(), end(), and reserve().

UTFString& Ogre::UTFString::assign const wchar_t *  w_str,
size_type  num
 

assign the first num characters of w_str to the current string

Definition at line 1212 of file OgreUTFString.h.

References assign().

UTFString& Ogre::UTFString::assign const wchar_t *  w_str  ) 
 

assign w_str to the current string

Definition at line 1206 of file OgreUTFString.h.

References assign().

UTFString& Ogre::UTFString::assign const std::wstring &  wstr  ) 
 

assign wstr to the current string (wstr is treated as a UTF-16 stream)

Definition at line 1181 of file OgreUTFString.h.

References _utf32_to_utf16(), clear(), end(), mData, and reserve().

UTFString& Ogre::UTFString::assign size_type  num,
const code_point ch
 

assign num copies of ch to the current string

Definition at line 1176 of file OgreUTFString.h.

References assign(), and mData.

UTFString& Ogre::UTFString::assign const UTFString str,
size_type  index,
size_type  len
 

assign len entries from str to the current string, starting at index

Definition at line 1171 of file OgreUTFString.h.

References assign(), and mData.

UTFString& Ogre::UTFString::assign const code_point str,
size_type  num
 

assign the first num characters of str to the current string

Definition at line 1166 of file OgreUTFString.h.

References assign(), and mData.

UTFString& Ogre::UTFString::assign const code_point str  ) 
 

assign the nul-terminated str to the current string

Definition at line 1161 of file OgreUTFString.h.

References assign(), and mData.

UTFString& Ogre::UTFString::assign const UTFString str  ) 
 

assign str to the current string

Definition at line 1156 of file OgreUTFString.h.

References assign(), and mData.

UTFString& Ogre::UTFString::assign iterator  start,
iterator  end
 

gives the current string the values from start to end

Definition at line 1151 of file OgreUTFString.h.

References mData, and Ogre::UTFString::_base_iterator::mIter.

Referenced by assign(), find_first_not_of(), find_first_of(), find_last_not_of(), find_last_of(), operator=(), and UTFString().

const utf32string& Ogre::UTFString::asUTF32  )  const
 

returns the current string in UTF-32 form within a utf32string

Definition at line 995 of file OgreUTFString.h.

References _load_buffer_UTF32(), and m_buffer.

const unicode_char* Ogre::UTFString::asUTF32_c_str  )  const
 

returns the current string in UTF-32 form as a nul-terminated unicode_char array

Definition at line 1000 of file OgreUTFString.h.

References _load_buffer_UTF32(), and m_buffer.

const std::string& Ogre::UTFString::asUTF8  )  const
 

returns the current string in UTF-8 form within a std::string

Definition at line 985 of file OgreUTFString.h.

References _load_buffer_UTF8(), and m_buffer.

Referenced by operator std::string(), and Ogre::operator<<().

const char* Ogre::UTFString::asUTF8_c_str  )  const
 

returns the current string in UTF-8 form as a nul-terminated char array

Definition at line 990 of file OgreUTFString.h.

References _load_buffer_UTF8(), and m_buffer.

const std::wstring& Ogre::UTFString::asWStr  )  const
 

returns the current string in the native form of std::wstring

Definition at line 1005 of file OgreUTFString.h.

References _load_buffer_WStr(), and m_buffer.

Referenced by operator std::wstring(), and Ogre::operator<<().

const wchar_t* Ogre::UTFString::asWStr_c_str  )  const
 

returns the current string in the native form of a nul-terminated wchar_t array

Definition at line 1010 of file OgreUTFString.h.

References _load_buffer_WStr(), and m_buffer.

const code_point& Ogre::UTFString::at size_type  loc  )  const
 

returns a reference to the element in the string at index loc

Definition at line 1025 of file OgreUTFString.h.

References mData.

code_point& Ogre::UTFString::at size_type  loc  ) 
 

returns a reference to the element in the string at index loc

Definition at line 1021 of file OgreUTFString.h.

References mData.

Referenced by find_last_not_of(), find_last_of(), operator[](), and setChar().

const_iterator Ogre::UTFString::begin  )  const
 

returns an iterator to the first element of the string

Definition at line 1096 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

iterator Ogre::UTFString::begin  ) 
 

returns an iterator to the first element of the string

Definition at line 1089 of file OgreUTFString.h.

References mData, Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

Referenced by Ogre::UTFString::_base_iterator::_get_index(), Ogre::UTFString::_base_iterator::_jump_to(), Ogre::UTFString::_base_iterator::_test_begin(), inString(), length_Characters(), and replace().

const code_point* Ogre::UTFString::c_str  )  const
 

returns a pointer to the first character in the current string

Definition at line 920 of file OgreUTFString.h.

References mData.

Referenced by append(), assign(), compare(), data(), find(), getChar(), insert(), rfind(), and UTFString().

size_type Ogre::UTFString::capacity  )  const
 

returns the number of elements that the string can hold before it will need to allocate more space

Definition at line 928 of file OgreUTFString.h.

References mData.

void Ogre::UTFString::clear void   ) 
 

deletes all of the elements in the string

Definition at line 932 of file OgreUTFString.h.

References mData.

Referenced by assign(), and operator=().

int Ogre::UTFString::compare size_type  index,
size_type  length,
const char *  c_str,
size_type  length2
const
 

compare a substring of str to a substring of the current string, where the substring of str begins at zero and is length2 UTF-8 code points long, and the substring of the current string begins at index and is length characters long

Definition at line 1548 of file OgreUTFString.h.

References c_str(), and compare().

int Ogre::UTFString::compare size_type  index,
size_type  length,
const wchar_t *  w_str,
size_type  length2
const
 

compare a substring of str to a substring of the current string, where the substring of str begins at zero and is length2 elements long, and the substring of the current string begins at index and is length characters long

Definition at line 1542 of file OgreUTFString.h.

References compare().

int Ogre::UTFString::compare size_type  index,
size_type  length,
const code_point str,
size_type  length2
const
 

compare a substring of str to a substring of the current string, where the substring of str begins at zero and is length2 characters long, and the substring of the current string begins at index and is length characters long

Definition at line 1537 of file OgreUTFString.h.

References compare(), and mData.

int Ogre::UTFString::compare size_type  index,
size_type  length,
const UTFString str,
size_type  index2,
size_type  length2
const
 

compare a substring of str to a substring of the current string, where index2 and length2 refer to str and index and length refer to the current string

Definition at line 1533 of file OgreUTFString.h.

References compare(), and mData.

int Ogre::UTFString::compare size_type  index,
size_type  length,
const UTFString str
const
 

compare str to a substring of the current string, starting at index for length characters

Definition at line 1529 of file OgreUTFString.h.

References compare(), and mData.

int Ogre::UTFString::compare const code_point str  )  const
 

compare str to the current string

Definition at line 1525 of file OgreUTFString.h.

References compare(), and mData.

int Ogre::UTFString::compare const UTFString str  )  const
 

compare str to the current string

Definition at line 1521 of file OgreUTFString.h.

References mData.

Referenced by compare(), operator<(), operator<=(), operator==(), operator>(), and operator>=().

const code_point* Ogre::UTFString::data  )  const
 

returns a pointer to the first character in the current string

Definition at line 924 of file OgreUTFString.h.

References c_str().

Referenced by substr().

bool Ogre::UTFString::empty  )  const
 

returns true if the string has no elements, false otherwise

Definition at line 916 of file OgreUTFString.h.

References mData.

const_iterator Ogre::UTFString::end void   )  const
 

returns an iterator just past the end of the string

Definition at line 1110 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

iterator Ogre::UTFString::end void   ) 
 

returns an iterator just past the end of the string

Definition at line 1103 of file OgreUTFString.h.

References mData, Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

Referenced by Ogre::UTFString::_base_iterator::_test_end(), _verifyUTF8(), assign(), inString(), and length_Characters().

UTFString& Ogre::UTFString::erase size_type  index = 0,
size_type  num = npos
 

removes num code points from the current string, starting at index

Definition at line 1465 of file OgreUTFString.h.

References mData, and npos.

iterator Ogre::UTFString::erase iterator  start,
iterator  end
 

removes the code points between start and end (including the one at start but not the one at end), returning an iterator to the code point after the last code point removed

Definition at line 1458 of file OgreUTFString.h.

References mData, Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

iterator Ogre::UTFString::erase iterator  loc  ) 
 

removes the code point pointed to by loc, returning an iterator to the next character

Definition at line 1451 of file OgreUTFString.h.

References mData, Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

Referenced by setChar().

size_type Ogre::UTFString::find unicode_char  ch,
size_type  index = 0
const
 

returns the index of the first occurrence ch within the current string, starting at index; returns UTFString::npos if nothing is found

ch can fully represent any Unicode character

Definition at line 1602 of file OgreUTFString.h.

References _utf32_to_utf16(), find(), and UTFString().

size_type Ogre::UTFString::find wchar_t  ch,
size_type  index = 0
const
 

returns the index of the first occurrence ch within the current string, starting at index; returns UTFString::npos if nothing is found

ch is only capable of representing Unicode values up to U+FFFF (65535)

Definition at line 1596 of file OgreUTFString.h.

References find().

size_type Ogre::UTFString::find code_point  ch,
size_type  index = 0
const
 

returns the index of the first occurrence ch within the current string, starting at index; returns UTFString::npos if nothing is found

ch is only capable of representing Unicode values up to U+FFFF (65535)

Definition at line 1590 of file OgreUTFString.h.

References find(), and mData.

size_type Ogre::UTFString::find char  ch,
size_type  index = 0
const
 

returns the index of the first occurrence ch within the current string, starting at index; returns UTFString::npos if nothing is found

ch is only capable of representing Unicode values up to U+007F (127)

Definition at line 1585 of file OgreUTFString.h.

References find().

size_type Ogre::UTFString::find const wchar_t *  w_str,
size_type  index,
size_type  length
const
 

returns the index of the first occurrence of str within the current string and within length code points, starting at index; returns UTFString::npos if nothing is found

cp_str is a UTF-16 encoded string

Definition at line 1578 of file OgreUTFString.h.

References c_str(), find(), and mData.

size_type Ogre::UTFString::find const char *  c_str,
size_type  index,
size_type  length
const
 

returns the index of the first occurrence of str within the current string and within length code points, starting at index; returns UTFString::npos if nothing is found

cp_str is a UTF-8 encoded string

Definition at line 1571 of file OgreUTFString.h.

References c_str(), find(), and mData.

size_type Ogre::UTFString::find const code_point cp_str,
size_type  index,
size_type  length
const
 

returns the index of the first occurrence of str within the current string and within length code points, starting at index; returns UTFString::npos if nothing is found

cp_str is a UTF-16 encoded string

Definition at line 1565 of file OgreUTFString.h.

References c_str(), find(), and mData.

size_type Ogre::UTFString::find const UTFString str,
size_type  index = 0
const
 

returns the index of the first occurrence of str within the current string, starting at index; returns UTFString::npos if nothing is found

str is a UTF-16 encoded string, but through implicit casting can also be a UTF-8 encoded string (const char* or std::string)

Definition at line 1560 of file OgreUTFString.h.

References mData.

Referenced by find().

size_type Ogre::UTFString::find_first_not_of unicode_char  ch,
size_type  index = 0
const
 

returns the index of the first character within the current string that does not match ch, starting the search at index; returns UTFString::npos if nothing is found

Definition at line 1719 of file OgreUTFString.h.

References _utf32_to_utf16(), find_first_not_of(), and UTFString().

size_type Ogre::UTFString::find_first_not_of wchar_t  ch,
size_type  index = 0
const
 

returns the index of the first character within the current string that does not match ch, starting the search at index; returns UTFString::npos if nothing is found

Definition at line 1714 of file OgreUTFString.h.

References find_first_not_of().

size_type Ogre::UTFString::find_first_not_of char  ch,
size_type  index = 0
const
 

returns the index of the first character within the current string that does not match ch, starting the search at index; returns UTFString::npos if nothing is found

Definition at line 1709 of file OgreUTFString.h.

References find_first_not_of().

size_type Ogre::UTFString::find_first_not_of code_point  ch,
size_type  index = 0
const
 

returns the index of the first character within the current string that does not match ch, starting the search at index; returns UTFString::npos if nothing is found

Definition at line 1703 of file OgreUTFString.h.

References assign(), and find_first_not_of().

size_type Ogre::UTFString::find_first_not_of const UTFString str,
size_type  index = 0,
size_type  num = npos
const
 

returns the index of the first character within the current string that does not match any character in str, beginning the search at index and searching at most num characters; returns UTFString::npos if nothing is found

Definition at line 1691 of file OgreUTFString.h.

References _utf16_char_length(), getChar(), length(), and npos.

Referenced by find_first_not_of().

size_type Ogre::UTFString::find_first_of unicode_char  ch,
size_type  index = 0
const
 

returns the index of the first occurrence of ch in the current string, starting the search at index; returns UTFString::npos if nothing is found

Definition at line 1684 of file OgreUTFString.h.

References _utf32_to_utf16(), find_first_of(), and UTFString().

size_type Ogre::UTFString::find_first_of wchar_t  ch,
size_type  index = 0
const
 

returns the index of the first occurrence of ch in the current string, starting the search at index; returns UTFString::npos if nothing is found

Definition at line 1679 of file OgreUTFString.h.

References find_first_of().

size_type Ogre::UTFString::find_first_of char  ch,
size_type  index = 0
const
 

returns the index of the first occurrence of ch in the current string, starting the search at index; returns UTFString::npos if nothing is found

Definition at line 1674 of file OgreUTFString.h.

References find_first_of().

size_type Ogre::UTFString::find_first_of code_point  ch,
size_type  index = 0
const
 

returns the index of the first occurrence of ch in the current string, starting the search at index; returns UTFString::npos if nothing is found

Definition at line 1668 of file OgreUTFString.h.

References assign(), and find_first_of().

size_type Ogre::UTFString::find_first_of const UTFString str,
size_type  index = 0,
size_type  num = npos
const
 

Returns the index of the first character within the current string that matches any character in str, beginning the search at index and searching at most num characters; returns UTFString::npos if nothing is found.

Definition at line 1656 of file OgreUTFString.h.

References _utf16_char_length(), getChar(), length(), and npos.

Referenced by find_first_of().

size_type Ogre::UTFString::find_last_not_of unicode_char  ch,
size_type  index = npos
const
 

returns the index of the last occurrence of a character that does not match ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found

Definition at line 1805 of file OgreUTFString.h.

References _utf32_to_utf16(), find_last_not_of(), and UTFString().

size_type Ogre::UTFString::find_last_not_of wchar_t  ch,
size_type  index = npos
const
 

returns the index of the last occurrence of a character that does not match ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found

Definition at line 1800 of file OgreUTFString.h.

References find_last_not_of().

size_type Ogre::UTFString::find_last_not_of char  ch,
size_type  index = npos
const
 

returns the index of the last occurrence of a character that does not match ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found

Definition at line 1795 of file OgreUTFString.h.

References find_last_not_of().

size_type Ogre::UTFString::find_last_not_of code_point  ch,
size_type  index = npos
const
 

returns the index of the last occurrence of a character that does not match ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found

Definition at line 1789 of file OgreUTFString.h.

References assign(), and find_last_not_of().

size_type Ogre::UTFString::find_last_not_of const UTFString str,
size_type  index = npos,
size_type  num = npos
const
 

returns the index of the last character within the current string that does not match any character in str, doing a reverse search from index; returns UTFString::npos if nothing is found

Definition at line 1769 of file OgreUTFString.h.

References _utf16_surrogate_follow(), _utf16_surrogate_lead(), at(), getChar(), length(), and npos.

Referenced by find_last_not_of().

size_type Ogre::UTFString::find_last_of unicode_char  ch,
size_type  index = npos
const
 

returns the index of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found

Definition at line 1762 of file OgreUTFString.h.

References _utf32_to_utf16(), find_last_of(), and UTFString().

size_type Ogre::UTFString::find_last_of wchar_t  ch,
size_type  index = npos
const
 

returns the index of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found

Definition at line 1757 of file OgreUTFString.h.

References find_last_of().

size_type Ogre::UTFString::find_last_of char  ch,
size_type  index = npos
const
 

returns the index of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found

Definition at line 1752 of file OgreUTFString.h.

References find_last_of().

size_type Ogre::UTFString::find_last_of code_point  ch,
size_type  index = npos
const
 

returns the index of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found

Definition at line 1746 of file OgreUTFString.h.

References assign(), and find_last_of().

size_type Ogre::UTFString::find_last_of const UTFString str,
size_type  index = npos,
size_type  num = npos
const
 

returns the index of the first character within the current string that matches any character in str, doing a reverse search from index and searching at most num characters; returns UTFString::npos if nothing is found

Definition at line 1726 of file OgreUTFString.h.

References _utf16_surrogate_follow(), _utf16_surrogate_lead(), at(), getChar(), length(), and npos.

Referenced by find_last_of().

unicode_char Ogre::UTFString::getChar size_type  loc  )  const
 

returns the data point loc evaluated as a UTF-32 value

This function will will only properly decode surrogate pairs when loc points to the index of a lead code point that is followed by a trailing code point. Evaluating the trailing code point itself, or pointing to a code point that is a sentinel value (part of a broken pair) will return the value of just that code point (not a valid Unicode value, but useful as a sentinel value).

Definition at line 1033 of file OgreUTFString.h.

References _utf16_char_length(), _utf16_to_utf32(), c_str(), and mData.

Referenced by Ogre::UTFString::_base_iterator::_getCharacter(), find_first_not_of(), find_first_of(), find_last_not_of(), find_last_of(), and setChar().

void Ogre::UTFString::insert iterator  i,
size_type  num,
const unicode_char ch
 

inserts num copies of ch into the current string, before the code point denoted by i

Definition at line 1431 of file OgreUTFString.h.

References _utf32_to_utf16(), and insert().

void Ogre::UTFString::insert iterator  i,
size_type  num,
const char &  ch
 

inserts num copies of ch into the current string, before the code point denoted by i

Definition at line 1427 of file OgreUTFString.h.

References insert().

void Ogre::UTFString::insert iterator  i,
size_type  num,
const wchar_t &  ch
 

inserts num copies of ch into the current string, before the code point denoted by i

Definition at line 1422 of file OgreUTFString.h.

References insert().

void Ogre::UTFString::insert iterator  i,
size_type  num,
const code_point ch
 

inserts num copies of ch into the current string, before the code point denoted by i

Definition at line 1417 of file OgreUTFString.h.

References mData, and Ogre::UTFString::_base_iterator::mIter.

UTFString& Ogre::UTFString::insert size_type  index,
size_type  num,
unicode_char  ch
 

inserts num copies of ch into the current string, at location index

Definition at line 1403 of file OgreUTFString.h.

References _utf32_to_utf16(), and insert().

UTFString& Ogre::UTFString::insert size_type  index,
size_type  num,
char  ch
 

inserts num copies of ch into the current string, at location index

Definition at line 1398 of file OgreUTFString.h.

References insert().

UTFString& Ogre::UTFString::insert size_type  index,
size_type  num,
wchar_t  ch
 

inserts num copies of ch into the current string, at location index

Definition at line 1392 of file OgreUTFString.h.

References insert().

UTFString& Ogre::UTFString::insert size_type  index,
size_type  num,
code_point  ch
 

inserts num copies of ch into the current string, at location index

Definition at line 1386 of file OgreUTFString.h.

References mData.

UTFString& Ogre::UTFString::insert size_type  index,
const char *  c_str,
size_type  num
 

inserts num code points of str into the current string, at location index

Definition at line 1380 of file OgreUTFString.h.

References c_str(), and insert().

UTFString& Ogre::UTFString::insert size_type  index,
const wchar_t *  w_str,
size_type  num
 

inserts num code points of str into the current string, at location index

Definition at line 1373 of file OgreUTFString.h.

References insert().

UTFString& Ogre::UTFString::insert size_type  index,
const code_point str,
size_type  num
 

inserts num code points of str into the current string, at location index

Definition at line 1367 of file OgreUTFString.h.

References mData.

void Ogre::UTFString::insert iterator  i,
iterator  start,
iterator  end
 

inserts the code points denoted by start and end into the current string, before the code point specified by i

Definition at line 1363 of file OgreUTFString.h.

References mData, and Ogre::UTFString::_base_iterator::mIter.

UTFString& Ogre::UTFString::insert size_type  index1,
const UTFString str,
size_type  index2,
size_type  num
 

inserts a substring of str (starting at index2 and num code points long) into the current string, at location index1

Definition at line 1358 of file OgreUTFString.h.

References mData.

UTFString& Ogre::UTFString::insert size_type  index,
const code_point str
 

inserts str into the current string, at location index

Definition at line 1353 of file OgreUTFString.h.

References mData.

UTFString& Ogre::UTFString::insert size_type  index,
const UTFString str
 

inserts str into the current string, at location index

Definition at line 1348 of file OgreUTFString.h.

References mData.

iterator Ogre::UTFString::insert iterator  i,
const code_point ch
 

inserts ch before the code point denoted by i

Definition at line 1341 of file OgreUTFString.h.

References mData, Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

Referenced by insert(), and setChar().

bool Ogre::UTFString::inString unicode_char  ch  )  const
 

returns true if the given Unicode character ch is in this string

Definition at line 970 of file OgreUTFString.h.

References begin(), end(), Ogre::UTFString::_const_fwd_iterator::getCharacter(), and Ogre::UTFString::_const_fwd_iterator::moveNext().

size_type Ogre::UTFString::length  )  const
 

Returns the number of code points in the current string.

Definition at line 885 of file OgreUTFString.h.

References size().

Referenced by Ogre::Vector3::distance(), find_first_not_of(), find_first_of(), find_last_not_of(), and find_last_of().

size_type Ogre::UTFString::length_Characters  )  const
 

Returns the number of Unicode characters in the string.

Executes in linear time.

Definition at line 890 of file OgreUTFString.h.

References begin(), end(), and Ogre::UTFString::_const_fwd_iterator::moveNext().

size_type Ogre::UTFString::max_size  )  const
 

returns the maximum number of UTF-16 code points that the string can hold

Definition at line 900 of file OgreUTFString.h.

References mData.

Ogre::UTFString::operator std::string  )  const
 

implicit cast to std::string

Definition at line 1881 of file OgreUTFString.h.

References asUTF8(), and operator std::string().

Referenced by operator std::string().

Ogre::UTFString::operator std::wstring  )  const
 

implicit cast to std::wstring

Definition at line 1885 of file OgreUTFString.h.

References asWStr().

bool Ogre::UTFString::operator!= const UTFString right  )  const
 

inequality operator

Definition at line 1837 of file OgreUTFString.h.

References operator==().

bool Ogre::UTFString::operator< const UTFString right  )  const
 

less than operator

Definition at line 1817 of file OgreUTFString.h.

References compare().

bool Ogre::UTFString::operator<= const UTFString right  )  const
 

less than or equal operator

Definition at line 1821 of file OgreUTFString.h.

References compare().

UTFString& Ogre::UTFString::operator= unicode_char  ch  ) 
 

assignment operator

Definition at line 1862 of file OgreUTFString.h.

References append(), and clear().

UTFString& Ogre::UTFString::operator= wchar_t  ch  ) 
 

assignment operator

Definition at line 1856 of file OgreUTFString.h.

References append(), and clear().

UTFString& Ogre::UTFString::operator= char  ch  ) 
 

assignment operator

Definition at line 1850 of file OgreUTFString.h.

References append(), and clear().

UTFString& Ogre::UTFString::operator= code_point  ch  ) 
 

assignment operator

Definition at line 1845 of file OgreUTFString.h.

References append(), and clear().

UTFString& Ogre::UTFString::operator= const UTFString s  ) 
 

assignment operator, implicitly casts all compatible types

Definition at line 1841 of file OgreUTFString.h.

References assign().

bool Ogre::UTFString::operator== const UTFString right  )  const
 

equality operator

Definition at line 1833 of file OgreUTFString.h.

References compare().

Referenced by operator!=().

bool Ogre::UTFString::operator> const UTFString right  )  const
 

greater than operator

Definition at line 1825 of file OgreUTFString.h.

References compare().

bool Ogre::UTFString::operator>= const UTFString right  )  const
 

greater than or equal operator

Definition at line 1829 of file OgreUTFString.h.

References compare().

const code_point& Ogre::UTFString::operator[] size_type  index  )  const
 

code point dereference operator

Definition at line 1871 of file OgreUTFString.h.

References at().

code_point& Ogre::UTFString::operator[] size_type  index  ) 
 

code point dereference operator

Definition at line 1867 of file OgreUTFString.h.

References at().

void Ogre::UTFString::push_back char  val  ) 
 

appends val to the end of the string

Limited to characters under the 127 value barrier.

Definition at line 966 of file OgreUTFString.h.

References mData, and push_back().

void Ogre::UTFString::push_back code_point  val  ) 
 

appends val to the end of the string

This can be used to push surrogate pair code points, you'll just need to push them one after the other.

Definition at line 961 of file OgreUTFString.h.

References mData, and push_back().

void Ogre::UTFString::push_back wchar_t  val  ) 
 

appends val to the end of the string

Definition at line 953 of file OgreUTFString.h.

References mData, and push_back().

void Ogre::UTFString::push_back unicode_char  val  ) 
 

appends val to the end of the string

Definition at line 945 of file OgreUTFString.h.

References _utf32_to_utf16().

Referenced by push_back().

const_reverse_iterator Ogre::UTFString::rbegin  )  const
 

returns a reverse iterator to the last element of the string

Definition at line 1124 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

reverse_iterator Ogre::UTFString::rbegin  ) 
 

returns a reverse iterator to the last element of the string

Definition at line 1117 of file OgreUTFString.h.

References mData, Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

const_reverse_iterator Ogre::UTFString::rend  )  const
 

returns a reverse iterator just past the beginning of the string

Definition at line 1138 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

reverse_iterator Ogre::UTFString::rend  ) 
 

returns a reverse iterator just past the beginning of the string

Definition at line 1131 of file OgreUTFString.h.

References mData, Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

UTFString& Ogre::UTFString::replace iterator  start,
iterator  end,
size_type  num,
code_point  ch
 

replaces the code points in the current string from start to end with num copies of ch

Definition at line 1507 of file OgreUTFString.h.

References begin(), and replace().

UTFString& Ogre::UTFString::replace size_type  index,
size_type  num1,
size_type  num2,
code_point  ch
 

replaces up to num1 code points in the current string (beginning at index) with num2 copies of ch

Definition at line 1502 of file OgreUTFString.h.

References mData, and replace().

UTFString& Ogre::UTFString::replace iterator  start,
iterator  end,
const UTFString str,
size_type  num = npos
 

replaces code points in the current string from start to end with num code points from str

Definition at line 1494 of file OgreUTFString.h.

References begin(), and replace().

UTFString& Ogre::UTFString::replace size_type  index1,
size_type  num1,
const UTFString str,
size_type  index2,
size_type  num2
 

replaces up to num1 code points of the current string (starting at index1) with up to num2 code points from str beginning at index2

Definition at line 1489 of file OgreUTFString.h.

References mData, and replace().

UTFString& Ogre::UTFString::replace size_type  index1,
size_type  num1,
const UTFString str,
size_type  num2
 

replaces up to num1 code points of the current string (starting at index1) with up to num2 code points from str

Definition at line 1484 of file OgreUTFString.h.

References mData, and replace().

UTFString& Ogre::UTFString::replace size_type  index1,
size_type  num1,
const UTFString str
 

replaces up to num1 code points of the current string (starting at index1) with str

Definition at line 1479 of file OgreUTFString.h.

References mData, and npos.

Referenced by replace().

void Ogre::UTFString::reserve size_type  size  ) 
 

sets the capacity of the string to at least size code points

Definition at line 904 of file OgreUTFString.h.

References mData.

Referenced by assign().

void Ogre::UTFString::resize size_type  num,
const code_point val = 0
 

changes the size of the string to size, filling in any new area with val

Definition at line 908 of file OgreUTFString.h.

References mData.

size_type Ogre::UTFString::rfind unicode_char  ch,
size_type  index = 0
const
 

returns the location of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found

Definition at line 1644 of file OgreUTFString.h.

References _utf32_to_utf16(), rfind(), and UTFString().

size_type Ogre::UTFString::rfind wchar_t  ch,
size_type  index = 0
const
 

returns the location of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found

Definition at line 1639 of file OgreUTFString.h.

References rfind().

size_type Ogre::UTFString::rfind code_point  ch,
size_type  index
const
 

returns the location of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found

Definition at line 1634 of file OgreUTFString.h.

References mData, and rfind().

size_type Ogre::UTFString::rfind char  ch,
size_type  index = 0
const
 

returns the location of the first occurrence of ch in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found

Definition at line 1630 of file OgreUTFString.h.

References rfind().

size_type Ogre::UTFString::rfind const wchar_t *  w_str,
size_type  index,
size_type  num
const
 

returns the location of the first occurrence of str in the current string, doing a reverse search from index, searching at most num characters; returns UTFString::npos if nothing is found

Definition at line 1624 of file OgreUTFString.h.

References c_str(), mData, and rfind().

size_type Ogre::UTFString::rfind const char *  c_str,
size_type  index,
size_type  num
const
 

returns the location of the first occurrence of str in the current string, doing a reverse search from index, searching at most num characters; returns UTFString::npos if nothing is found

Definition at line 1618 of file OgreUTFString.h.

References c_str(), mData, and rfind().

size_type Ogre::UTFString::rfind const code_point cp_str,
size_type  index,
size_type  num
const
 

returns the location of the first occurrence of str in the current string, doing a reverse search from index, searching at most num characters; returns UTFString::npos if nothing is found

Definition at line 1613 of file OgreUTFString.h.

References c_str(), mData, and rfind().

size_type Ogre::UTFString::rfind const UTFString str,
size_type  index = 0
const
 

returns the location of the first occurrence of str in the current string, doing a reverse search from index; returns UTFString::npos if nothing is found

Definition at line 1609 of file OgreUTFString.h.

References mData.

Referenced by rfind().

int Ogre::UTFString::setChar size_type  loc,
unicode_char  ch
 

sets the value of the character at loc to the Unicode value ch (UTF-32)

Providing sentinel values (values between U+D800-U+DFFF) are accepted, but you should be aware that you can also unwittingly create a valid surrogate pair if you don't pay attention to what you are doing.

Note:
This operation may also lengthen the string if a surrogate pair is needed to represent the value given, but one is not available to replace; or alternatively shorten the string if an existing surrogate pair is replaced with a character that is representable without a surrogate pair. The return value will signify any lengthening or shortening performed, returning 0 if no change was made, -1 if the string was shortened, or 1 if the string was lengthened. Any single call can only change the string length by + or - 1.

Definition at line 1057 of file OgreUTFString.h.

References _utf16_char_length(), _utf32_to_utf16(), at(), erase(), getChar(), and insert().

Referenced by Ogre::UTFString::_base_iterator::_setCharacter().

size_type Ogre::UTFString::size void   )  const
 

Returns the number of code points in the current string.

Definition at line 881 of file OgreUTFString.h.

References mData.

Referenced by length().

UTFString Ogre::UTFString::substr size_type  index,
size_type  num = npos
const
 

returns a substring of the current string, starting at index, and num characters long.

If num is omitted, it will default to UTFString::npos, and the substr() function will simply return the remainder of the string starting at index.

Definition at line 937 of file OgreUTFString.h.

References data(), mData, and swap().

void Ogre::UTFString::swap UTFString from  ) 
 

exchanges the elements of the current string with those of from

Definition at line 912 of file OgreUTFString.h.

References mData.

Referenced by substr().


Member Data Documentation

const unsigned char Ogre::UTFString::_cont = 0x80 [static, private]
 

Definition at line 173 of file OgreUTFString.h.

const unsigned char Ogre::UTFString::_cont_mask = 0x3F [static, private]
 

Definition at line 174 of file OgreUTFString.h.

const unsigned char Ogre::UTFString::_lead1 = 0xC0 [static, private]
 

Definition at line 163 of file OgreUTFString.h.

const unsigned char Ogre::UTFString::_lead1_mask = 0x1F [static, private]
 

Definition at line 164 of file OgreUTFString.h.

const unsigned char Ogre::UTFString::_lead2 = 0xE0 [static, private]
 

Definition at line 165 of file OgreUTFString.h.

const unsigned char Ogre::UTFString::_lead2_mask = 0x0F [static, private]
 

Definition at line 166 of file OgreUTFString.h.

const unsigned char Ogre::UTFString::_lead3 = 0xF0 [static, private]
 

Definition at line 167 of file OgreUTFString.h.

const unsigned char Ogre::UTFString::_lead3_mask = 0x07 [static, private]
 

Definition at line 168 of file OgreUTFString.h.

const unsigned char Ogre::UTFString::_lead4 = 0xF8 [static, private]
 

Definition at line 169 of file OgreUTFString.h.

const unsigned char Ogre::UTFString::_lead4_mask = 0x03 [static, private]
 

Definition at line 170 of file OgreUTFString.h.

const unsigned char Ogre::UTFString::_lead5 = 0xFC [static, private]
 

Definition at line 171 of file OgreUTFString.h.

const unsigned char Ogre::UTFString::_lead5_mask = 0x01 [static, private]
 

Definition at line 172 of file OgreUTFString.h.

union { ... } Ogre::UTFString::m_buffer [private]
 

Referenced by asUTF32(), asUTF32_c_str(), asUTF8(), asUTF8_c_str(), asWStr(), and asWStr_c_str().

size_t Ogre::UTFString::m_bufferSize [mutable, private]
 

Definition at line 2290 of file OgreUTFString.h.

BufferType Ogre::UTFString::m_bufferType [mutable, private]
 

Definition at line 2289 of file OgreUTFString.h.

dstring Ogre::UTFString::mData [private]
 

Definition at line 2165 of file OgreUTFString.h.

Referenced by Ogre::UTFString::_base_iterator::_get_index(), Ogre::UTFString::_base_iterator::_jump_to(), Ogre::UTFString::_base_iterator::_test_begin(), Ogre::UTFString::_base_iterator::_test_end(), append(), assign(), at(), begin(), c_str(), capacity(), clear(), compare(), empty(), end(), erase(), find(), getChar(), insert(), max_size(), push_back(), rbegin(), rend(), replace(), reserve(), resize(), rfind(), size(), substr(), swap(), and UTFString().

std::string* Ogre::UTFString::mStrBuffer [mutable, private]
 

Definition at line 2295 of file OgreUTFString.h.

utf32string* Ogre::UTFString::mUTF32StrBuffer [mutable, private]
 

Definition at line 2297 of file OgreUTFString.h.

void* Ogre::UTFString::mVoidBuffer [mutable, private]
 

Definition at line 2294 of file OgreUTFString.h.

std::wstring* Ogre::UTFString::mWStrBuffer [mutable, private]
 

Definition at line 2296 of file OgreUTFString.h.

const size_type Ogre::UTFString::npos = ~0 [static]
 

the usual constant representing: not found, no limit, etc

Definition at line 180 of file OgreUTFString.h.

Referenced by erase(), find_first_not_of(), find_first_of(), find_last_not_of(), find_last_of(), and replace().


The documentation for this class was generated from the following file:

Copyright © 2000-2005 by The OGRE Team
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun May 6 10:59:49 2007