Defines a Unicode (UTF-16) string wrapping a standard string. More...
#include <cadex/UTF16String.hxx>
Public Types | |
| typedef std::u16string::value_type | ValueType |
Public Member Functions | |
| UTF16String (const char *theOther) | |
| Constructor. | |
| UTF16String (const ValueType *theOther) | |
| UTF16String (const ValueType *theOther, size_t theLength) | |
| UTF16String (const wchar_t *theOther) | |
| Constructor. | |
| UTF16String (const std::wstring &theOther) | |
| Constructor. | |
| UTF16String (const std::string &theOther) | |
| const ValueType * | Data () const |
| Returns an internal string buffer. | |
| std::string | ToString () const |
| std::wstring | ToWString () const |
| Converts to standard wstring. | |
| void | Clear () |
| Clears the contents. | |
| size_t | Length () const |
| Returns a string length in UTF16 characters. | |
| bool | IsEmpty () const |
| Returns true if the string is empty. | |
| UTF16String & | operator= (const char *theOther) |
| Assignment operator. | |
| UTF16String & | operator= (const ValueType *theOther) |
| UTF16String & | operator= (const std::wstring &theOther) |
| Assignment operator. | |
| UTF16String & | operator= (const std::string &theOther) |
| Assignment operator. | |
| bool | operator== (const UTF16String &theOther) const |
| Returns true if this equals theOther. | |
| bool | operator!= (const UTF16String &theOther) const |
| Returns true if this does equal theOther. | |
| UTF16String | operator+ (const UTF16String &theOther) const |
| '+' operator. | |
| UTF16String & | operator+= (const UTF16String &theOther) |
| Concatenate operator. | |
Defines a Unicode (UTF-16) string wrapping a standard string.
| cadex::UTF16String::UTF16String | ( | const char * | theOther | ) |
Constructor.
Copies contents from another string.
| cadex::UTF16String::UTF16String | ( | const wchar_t * | theOther | ) |
Constructor.
Copies contents from another string.
| cadex::UTF16String::UTF16String | ( | const std::wstring & | theOther | ) |
Constructor.
Copies contents from another string.
| void cadex::UTF16String::Clear | ( | ) |
Clears the contents.
IsEmpty() will return true after calling this method.
| bool cadex::UTF16String::IsEmpty | ( | ) | const |
Returns true if the string is empty.
Returns true if the string length equals 0.
| UTF16String & cadex::UTF16String::operator= | ( | const char * | theOther | ) |
Assignment operator.
Copies contents from another string.
| UTF16String & cadex::UTF16String::operator= | ( | const std::string & | theOther | ) |
Assignment operator.
Copies contents from another string.
| UTF16String & cadex::UTF16String::operator= | ( | const std::wstring & | theOther | ) |
Assignment operator.
Copies contents from another wstring.
| std::wstring cadex::UTF16String::ToWString | ( | ) | const |
Converts to standard wstring.