Defines a Unicode (UTF-16) string wrapping a standard string. More...
Public Types | |
typedef UTF16 | ValueType |
Defines a type of a standard string with CAD Exchanger allocator. | |
typedef std::basic_string< ValueType, std::char_traits< ValueType >, Base_Allocator< ValueType > > | value_type |
Defines a type of a standard string with CAD Exchanger allocator. | |
Public Member Functions | |
Base_UTF16String () | |
Constructor. | |
Base_UTF16String (const Base_UTF16String &theOther) | |
Constructor. | |
Base_UTF16String (Base_UTF16String &&theOther) | |
Constructor. | |
Base_UTF16String (const char *theOther) | |
Constructor. | |
Base_UTF16String (const UTF16 *theOther) | |
Constructor. | |
Base_UTF16String (const UTF16 *theOther, size_t theLength) | |
Constructor. | |
Base_UTF16String (const wchar_t *theOther) | |
Constructor. | |
Base_UTF16String (const value_type &theOther) | |
Constructor. | |
Base_UTF16String (const TCollection_AsciiString &theOther) | |
Constructor. | |
Base_UTF16String (const TCollection_ExtendedString &theOther) | |
Constructor. | |
Base_UTF16String (const std::wstring &theOther) | |
Constructor. | |
Base_UTF16String (const Base_String &theOther) | |
Constructor. | |
Base_UTF16String (const std::basic_string< char, std::char_traits< char >, Base_Allocator< char > > &theOther) | |
Constructor. | |
~Base_UTF16String () | |
Destructor. | |
const value_type & | String () const |
Returns an internal string representation. | |
value_type & | String () |
Returns an internal string representation. | |
const UTF16 * | Data () const |
Returns an internal string buffer. | |
TCollection_ExtendedString | ToExtendedString () const |
Converts to another Unicode representation. | |
void | Clear () |
Clears the contents. | |
Base_String | ToUTF8 () const |
Converts to UTF-8 string. | |
std::wstring | ToWString () const |
Converts to standard wstring. | |
bool | operator== (const Base_UTF16String &theOther) const |
Returns true if this equals theOther. | |
bool | operator!= (const Base_UTF16String &theOther) const |
Returns true if this does equal theOther. | |
size_t | Length () const |
Returns a string length in UTF16 characters. | |
bool | IsEmpty () const |
Returns true if the string is empty. | |
Base_UTF16String & | operator= (const Base_UTF16String &theOther) |
Assignment operator. | |
Base_UTF16String & | operator= (Base_UTF16String &&theOther) |
Assignment operator. | |
Base_UTF16String & | operator= (const char *theOther) |
Assignment operator. | |
Base_UTF16String & | operator= (const UTF16 *theOther) |
Assignment operator. | |
Base_UTF16String & | operator= (const value_type &theOther) |
Assignment operator. | |
Base_UTF16String & | operator= (const TCollection_AsciiString &theOther) |
Assignment operator. | |
Base_UTF16String & | operator= (const TCollection_ExtendedString &theOther) |
Assignment operator. | |
Base_UTF16String & | operator= (const std::wstring &theOther) |
Assignment operator. | |
Base_UTF16String & | operator= (const Base_String &theOther) |
Assignment operator. | |
Base_UTF16String | operator+ (const Base_UTF16String &theOther) const |
'+' operator. | |
Base_UTF16String & | operator+= (const Base_UTF16String &theOther) |
Concatenate operator. | |
operator TCollection_ExtendedString () const | |
Converts to another Unicode representation. | |
Defines a Unicode (UTF-16) string wrapping a standard string.
cadex::Base_UTF16String::Base_UTF16String | ( | ) |
Constructor.
Creates an empty string.
cadex::Base_UTF16String::Base_UTF16String | ( | const Base_UTF16String & | theOther | ) |
Constructor.
Copies contents from another string.
cadex::Base_UTF16String::Base_UTF16String | ( | Base_UTF16String && | theOther | ) |
Constructor.
Moves contents from another string.
cadex::Base_UTF16String::Base_UTF16String | ( | const char * | theOther | ) |
Constructor.
Copies contents from another string.
cadex::Base_UTF16String::Base_UTF16String | ( | const UTF16 * | theOther | ) |
Constructor.
Copies contents from another string.
cadex::Base_UTF16String::Base_UTF16String | ( | const UTF16 * | theOther, |
size_t | theLength | ||
) |
Constructor.
Copies contents from another string.
cadex::Base_UTF16String::Base_UTF16String | ( | const wchar_t * | theOther | ) |
Constructor.
Copies contents from another string.
cadex::Base_UTF16String::Base_UTF16String | ( | const value_type & | theOther | ) |
Constructor.
Copies contents from another string. This syntax may only be used if the build environment (i.e. compiler versions and flags) of the customer fully matches one of CAD Exchanger. Otherwise syntax with plain pointers should be used.
cadex::Base_UTF16String::Base_UTF16String | ( | const TCollection_AsciiString & | theOther | ) |
Constructor.
Copies contents from another string.
cadex::Base_UTF16String::Base_UTF16String | ( | const TCollection_ExtendedString & | theOther | ) |
Constructor.
Copies contents from another string.
cadex::Base_UTF16String::Base_UTF16String | ( | const std::wstring & | theOther | ) |
Constructor.
Copies contents from another string.
cadex::Base_UTF16String::Base_UTF16String | ( | const Base_String & | theOther | ) |
Constructor.
Copies contents from another string.
cadex::Base_UTF16String::Base_UTF16String | ( | const std::basic_string< char, std::char_traits< char >, Base_Allocator< char > > & | theOther | ) |
Constructor.
Copies contents from another string.
cadex::Base_UTF16String::~Base_UTF16String | ( | ) |
Destructor.
Destroys the object and frees all allocated resources.
void cadex::Base_UTF16String::Clear | ( | ) |
Clears the contents.
IsEmpty() will return true after calling this method.
bool cadex::Base_UTF16String::IsEmpty | ( | ) | const |
Returns true if the string is empty.
Returns true if the string length equals 0.
Base_UTF16String & cadex::Base_UTF16String::operator= | ( | Base_UTF16String && | theOther | ) |
Assignment operator.
Copies contents from another string.
Base_UTF16String & cadex::Base_UTF16String::operator= | ( | const Base_String & | theOther | ) |
Assignment operator.
Copies contents from another string.
Base_UTF16String & cadex::Base_UTF16String::operator= | ( | const Base_UTF16String & | theOther | ) |
Assignment operator.
Copies contents from another string.
Base_UTF16String & cadex::Base_UTF16String::operator= | ( | const char * | theOther | ) |
Assignment operator.
Copies contents from another string.
Base_UTF16String & cadex::Base_UTF16String::operator= | ( | const std::wstring & | theOther | ) |
Assignment operator.
Copies contents from another string. This syntax may only be used if the build environment (i.e. compiler versions and flags) of the customer fully matches one of CAD Exchanger. Otherwise syntax with plain pointers should be used.
Base_UTF16String & cadex::Base_UTF16String::operator= | ( | const TCollection_AsciiString & | theOther | ) |
Assignment operator.
Copies contents from another string.
Base_UTF16String & cadex::Base_UTF16String::operator= | ( | const TCollection_ExtendedString & | theOther | ) |
Assignment operator.
Copies contents from another string.
Base_UTF16String & cadex::Base_UTF16String::operator= | ( | const UTF16 * | theOther | ) |
Assignment operator.
Copies contents from another string.
Base_UTF16String & cadex::Base_UTF16String::operator= | ( | const value_type & | theOther | ) |
Assignment operator.
Copies contents from another string. This syntax may only be used if the build environment (i.e. compiler versions and flags) of the customer fully matches one of CAD Exchanger. Otherwise syntax with plain pointers should be used.
std::wstring cadex::Base_UTF16String::ToWString | ( | ) | const |
Converts to standard wstring.