|
join 1.0
lightweight network framework library
|
Namespaces | |
| namespace | details |
Functions | |
| int | decode (const char *&cur, const char *end, uint32_t &codepoint) noexcept |
| decode one codepoint from UTF-8. | |
| size_t | encode (uint32_t codepoint, char *out) noexcept |
| encode one codepoint to UTF-8. | |
| int | validate (const char *first, const char *last) noexcept |
| validate UTF-8 input. | |
| int | compareUtf16Order (const char *first1, const char *last1, const char *first2, const char *last2) noexcept |
| compare two UTF-8 inputs in UTF-16 code unit order. | |
|
inlinenoexcept |
compare two UTF-8 inputs in UTF-16 code unit order.
| first1 | first byte of the first input. |
| last1 | end of the first input. |
| first2 | first byte of the second input. |
| last2 | end of the second input. |
|
inlinenoexcept |
decode one codepoint from UTF-8.
| cur | current byte, must be lower than end, advanced past the sequence on success. |
| end | end of the input. |
| codepoint | decoded codepoint. |
|
inlinenoexcept |
encode one codepoint to UTF-8.
| codepoint | unicode scalar value to encode. |
| out | output buffer of at least 4 bytes. |
|
inlinenoexcept |
validate UTF-8 input.
| first | first byte of the input. |
| last | end of the input. |