|
OpenLexocad
27.0
|
A Utf-16 (windows) or ucs4 (unix) encoded string class. More...
#include <String.h>
Public Member Functions | |
| String () | |
| Constructs an empty string. More... | |
| String (const std::wstring &s) | |
| Constructs a string from a std::wstring. More... | |
| String (const QString &s) | |
| Constructs a string from a QString. More... | |
| String (const wchar_t *s) | |
| Constructs a string from an array of wchar_t. More... | |
| String (const Base::String &s) | |
| Constructs a string from an array of wchar_t. More... | |
| bool | operator== (const Base::String &other) const |
| bool | operator!= (const Base::String &other) const |
| bool | operator< (const Base::String &other) const |
| bool | operator> (const Base::String &other) const |
| Base::String & | operator= (const Base::String &rhs) |
| Base::String | operator+ (const Base::String &other) const |
| Base::String & | operator+= (const Base::String &other) |
| int | size () const |
| int | lenght () const |
| bool | empty () const |
| Base::String | substr (size_t pos=0, size_t len=std::string::npos) const |
| std::wstring | toWString () const |
| Returns Base::String as a std::wstring. More... | |
| const wchar_t * | c_str () const |
| Returns wchar_t array. More... | |
| bool | isEqual (const Base::String &other) const |
Friends | |
| class | StringTool |
| BASE_EXPORT std::ostream & | operator<< (std::ostream &o, const Base::String &s) |
A Utf-16 (windows) or ucs4 (unix) encoded string class.
| Base::String::String | ( | ) |
Constructs an empty string.
| Base::String::String | ( | const std::wstring & | s | ) |
Constructs a string from a std::wstring.
| Base::String::String | ( | const QString & | s | ) |
Constructs a string from a QString.
| Base::String::String | ( | const wchar_t * | s | ) |
Constructs a string from an array of wchar_t.
| Base::String::String | ( | const Base::String & | s | ) |
Constructs a string from an array of wchar_t.
Copy constructor
|
inline |
Returns wchar_t array.
|
inline |
| bool Base::String::isEqual | ( | const Base::String & | other | ) | const |
|
inline |
| bool Base::String::operator!= | ( | const Base::String & | other | ) | const |
| Base::String Base::String::operator+ | ( | const Base::String & | other | ) | const |
| Base::String& Base::String::operator+= | ( | const Base::String & | other | ) |
| bool Base::String::operator< | ( | const Base::String & | other | ) | const |
| Base::String& Base::String::operator= | ( | const Base::String & | rhs | ) |
| bool Base::String::operator== | ( | const Base::String & | other | ) | const |
| bool Base::String::operator> | ( | const Base::String & | other | ) | const |
|
inline |
| Base::String Base::String::substr | ( | size_t | pos = 0, |
| size_t | len = std::string::npos |
||
| ) | const |
| std::wstring Base::String::toWString | ( | ) | const |
Returns Base::String as a std::wstring.
|
friend |
|
friend |