#include <base/string/String.h>
|
| UTF8String (const uint8 *_src) noexcept |
|
| UTF8String (const uint8 *_src, MemorySize _size=0) noexcept |
|
| UTF8String (const char *_src, MemorySize _size=0) noexcept |
|
| UTF8String (const uint8 *_src, const uint8 *_end) noexcept |
|
| UTF8String (const char *_src, const char *_end) noexcept |
|
MemorySize | getLength () const noexcept |
|
bool | isValidUTF8 () const noexcept |
|
UTF8Iterator | begin () const noexcept |
|
UTF8Iterator | end () const noexcept |
|
◆ getLength()
MemorySize String::UTF8String::getLength |
( |
| ) |
const |
|
noexcept |
Returns the number of UTF-8 encoded characters. Not the number of bytes!
◆ isValidUTF8()
bool String::UTF8String::isValidUTF8 |
( |
| ) |
const |
|
noexcept |
Returns true if the bytes are valid UTF-8 encoded characters. And if no disallowed UCS4 codes are used.