#include "Compiler.h"
#include <stddef.h>
Go to the source code of this file.
Convert the specified string from ISO-8859-1 to UTF-8.
- Returns
- the UTF-8 version of the source string; may return #src if there are no non-ASCII characters; returns nullptr if the destination buffer is too small
Returns the number of characters in the string.
This is different from strlen(), which counts the number of bytes.
gcc_const size_t SequenceLengthUTF8 |
( |
char |
ch | ) |
|
|
noexcept |
- Returns
- the number of the sequence beginning with the given character, or 0 if the character is not a valid start byte
gcc_pure size_t SequenceLengthUTF8 |
( |
const char * |
p | ) |
|
|
noexcept |
- Returns
- the number of the first sequence in the given string, or 0 if the sequence is malformed
Convert the specified Unicode character to UTF-8 and write it to the buffer.
buffer must have a length of at least 6!
- Returns
- a pointer to the buffer plus the added bytes(s)
Is this a valid UTF-8 string?