|
Ultralight C++ API 2.0.0
|
#include <Ultralight/String32.h>
A null-terminated UTF-32 string container.
Public Types | |
| typedef char32_t | CharType |
| Native character type. | |
Public Member Functions | |
| String32 () | |
| Make an empty String32. | |
| String32 (const char32_t *c_str, size_t len) | |
| Make a String32 from raw UTF-32 string with certain length. | |
| String32 (const String32 &other) | |
| Make a deep copy of String32. | |
| String32 (String32 &&other) | |
| Move constructor. | |
| ~String32 () | |
| Destructor. | |
| String32 & | operator= (const String32 &other) |
| Assign a String32 to this one, deep copy is made. | |
| String32 & | operator= (String32 &&other) |
| Move assignment operator. | |
| String32 & | operator+= (const String32 &other) |
| Append a String32 to this one. | |
| char32_t * | data () |
| Get raw UTF-32 data. | |
| const char32_t * | data () const |
| Get raw UTF-32 data (const). | |
| size_t | length () const |
| Get length in characters. | |
| size_t | size () const |
| Get size in characters (synonym for length). | |
| size_t | sizeBytes () const |
| Get size in bytes. | |
| bool | empty () const |
| Check if string is empty. | |
| char32_t & | operator[] (size_t pos) |
| Get character at specific position. | |
| const char32_t & | operator[] (size_t pos) const |
| Get character at specific position (const). | |
| String8 | utf8 () const |
| Get a UTF-8 copy of this string. | |
| String16 | utf16 () const |
| Get a UTF-16 copy of this string. | |
| size_t | Hash () const |
| Hash function. | |
| bool | operator< (const String32 &other) const |
| Comparison operator. | |
| bool | operator== (const String32 &other) const |
| Equality operator. | |
| bool | operator!= (const String32 &other) const |
| Inequality operator. | |
Friends | |
| String32 | operator+ (String32 lhs, const String32 &rhs) |
| Concatenation operator. | |
| typedef char32_t CharType |
Native character type.
| String32 | ( | ) |
Make an empty String32.
| String32 | ( | const char32_t * | c_str, |
| size_t | len ) |
Make a String32 from raw UTF-32 string with certain length.
| String32 | ( | const String32 & | other | ) |
Make a deep copy of String32.
| String32 | ( | String32 && | other | ) |
Move constructor.
| ~String32 | ( | ) |
Destructor.
|
inline |
Get raw UTF-32 data.
|
inline |
Get raw UTF-32 data (const).
|
inline |
Check if string is empty.
| size_t Hash | ( | ) | const |
Hash function.
|
inline |
Get length in characters.
| bool operator!= | ( | const String32 & | other | ) | const |
Inequality operator.
| bool operator< | ( | const String32 & | other | ) | const |
Comparison operator.
| bool operator== | ( | const String32 & | other | ) | const |
Equality operator.
|
inline |
Get character at specific position.
|
inline |
Get character at specific position (const).
|
inline |
Get size in characters (synonym for length).
|
inline |
Get size in bytes.
| String16 utf16 | ( | ) | const |
Get a UTF-16 copy of this string.
| String8 utf8 | ( | ) | const |
Get a UTF-8 copy of this string.