|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
Functions | |
| bool | IsContinuation (char byte) |
Whether byte is a continuation byte – the middle of a character. | |
| size_t | SequenceWidth (char lead) |
Bytes in the sequence lead starts, from the lead byte alone. | |
| size_t | Utf16Units (char lead) |
UTF-16 code units the character at lead occupies: 2 above the BMP, else. | |
| bool | IsValid (std::string_view text) |
Whether text is well-formed UTF-8. | |
|
inline |
Whether byte is a continuation byte – the middle of a character.
|
inline |
Whether text is well-formed UTF-8.
Rejects overlong encodings, surrogate code points and values above U+10FFFF.
|
inline |
Bytes in the sequence lead starts, from the lead byte alone.
Returns a width from the lead byte's range. ASCII and continuation bytes have width 1. Use IsValid() to reject malformed input.
|
inline |
UTF-16 code units the character at lead occupies: 2 above the BMP, else.