|
join 1.0
lightweight network framework library
|
Functions | |
| constexpr bool | isSurrogate (uint32_t unit) noexcept |
| check if code unit is a surrogate. | |
| constexpr bool | isHighSurrogate (uint32_t unit) noexcept |
| check if code unit is a high surrogate. | |
| constexpr bool | isLowSurrogate (uint32_t unit) noexcept |
| check if code unit is a low surrogate. | |
| constexpr uint32_t | highSurrogate (uint32_t codepoint) noexcept |
| get the high surrogate of a supplementary codepoint. | |
| constexpr uint32_t | lowSurrogate (uint32_t codepoint) noexcept |
| get the low surrogate of a supplementary codepoint. | |
| constexpr uint32_t | combine (uint32_t high, uint32_t low) noexcept |
| combine a surrogate pair into a codepoint. | |
| int | decode (const char16_t *&cur, const char16_t *end, uint32_t &codepoint) noexcept |
| decode one codepoint from UTF-16. | |
| size_t | encode (uint32_t codepoint, char16_t *out) noexcept |
| encode one codepoint to UTF-16. | |
|
constexprnoexcept |
combine a surrogate pair into a codepoint.
| high | high surrogate. |
| low | low surrogate. |
|
inlinenoexcept |
decode one codepoint from UTF-16.
| cur | current code unit, 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-16.
| codepoint | unicode scalar value to encode. |
| out | output buffer of at least 2 code units. |
|
constexprnoexcept |
get the high surrogate of a supplementary codepoint.
| codepoint | codepoint above U+FFFF. |
|
constexprnoexcept |
check if code unit is a high surrogate.
| unit | code unit to check. |
|
constexprnoexcept |
check if code unit is a low surrogate.
| unit | code unit to check. |
|
constexprnoexcept |
check if code unit is a surrogate.
| unit | code unit to check. |
|
constexprnoexcept |
get the low surrogate of a supplementary codepoint.
| codepoint | codepoint above U+FFFF. |