#include <Ultralight/String.h>
UTF-8 String container with conversions for UTF-16 and UTF-32.
- Note
- Internally, all strings are represented as String8 (UTF-8).
◆ String() [1/8]
ultralight::String::String |
( |
| ) |
|
◆ String() [2/8]
ultralight::String::String |
( |
const char * |
str | ) |
|
Create from null-terminated, ASCII C-string.
◆ String() [3/8]
ultralight::String::String |
( |
const char * |
str, |
|
|
size_t |
len |
|
) |
| |
Create from raw, UTF-8 string with certain length.
◆ String() [4/8]
ultralight::String::String |
( |
const String8 & |
str | ) |
|
Create from existing String8 (UTF-8).
◆ String() [5/8]
ultralight::String::String |
( |
const Char16 * |
str, |
|
|
size_t |
len |
|
) |
| |
Create from raw UTF-16 string with certain length.
◆ String() [6/8]
ultralight::String::String |
( |
const String16 & |
str | ) |
|
◆ String() [7/8]
ultralight::String::String |
( |
const String32 & |
str | ) |
|
◆ String() [8/8]
ultralight::String::String |
( |
const String & |
other | ) |
|
◆ ~String()
ultralight::String::~String |
( |
| ) |
|
◆ empty()
bool ultralight::String::empty |
( |
| ) |
const |
|
inline |
Check if string is empty or not.
◆ operator+=()
String & ultralight::String::operator+= |
( |
const String & |
other | ) |
|
Append string with another.
◆ operator=()
String & ultralight::String::operator= |
( |
const String & |
other | ) |
|
Assign string from another, copy is made.
◆ utf16()
String16 ultralight::String::utf16 |
( |
| ) |
const |
Convert to UTF-16 string.
◆ utf32()
String32 ultralight::String::utf32 |
( |
| ) |
const |
Convert to UTF-32 string.
◆ utf8() [1/2]
String8 & ultralight::String::utf8 |
( |
| ) |
|
|
inline |
◆ utf8() [2/2]
const String8 & ultralight::String::utf8 |
( |
| ) |
const |
|
inline |
◆ operator+
The documentation for this class was generated from the following file: