|
join 1.0
lightweight network framework library
|
Classes | |
| struct | OrderTable |
| rank of UTF-8 bytes in UTF-16 code unit order. More... | |
| struct | SequenceTable |
| UTF-8 well-formed multibyte sequences indexed by lead byte. More... | |
Functions | |
| uint32_t | sequenceLength (const uint8_t *cur, const uint8_t *end) noexcept |
| get the length of a multibyte sequence. | |
| int | validateMixed (const uint8_t *cur, const uint8_t *end) noexcept |
| validate UTF-8 input that may contain multibyte sequences. | |
Variables | |
| constexpr SequenceTable | sequenceLookup {} |
| UTF-8 multibyte sequences lookup table. | |
| constexpr OrderTable | orderLookup {} |
| UTF-16 code unit order lookup table. | |
| constexpr uint64_t | highBits = 0x8080808080808080ULL |
| mask of the high bit of each byte of a 64 bits word. | |
|
inlinenoexcept |
get the length of a multibyte sequence.
| cur | lead byte of the sequence. |
| end | end of the input. |
|
inlinenoexcept |
validate UTF-8 input that may contain multibyte sequences.
| cur | first byte of the input. |
| end | end of the input. |
|
constexpr |
mask of the high bit of each byte of a 64 bits word.
|
constexpr |
UTF-16 code unit order lookup table.
|
constexpr |
UTF-8 multibyte sequences lookup table.