Decode a single Unicode code point from UTF-8 byte sequence.
Declared in <folly/Unicode.h>
char32_t
utf8ToCodePoint(
unsigned char const*& p,
unsigned char const const* e,
bool skipOnError);
The decoded Unicode code point.
| Name | Description |
|---|---|
| p | Reference to the read cursor; advanced past the decoded bytes. |
| e | Pointer to the end of the byte sequence. |
| skipOnError | Whether to skip invalid bytes instead of throwing. |