join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
utf16.hpp File Reference
#include <join/utils.hpp>
#include <cstddef>
#include <cstdint>
Include dependency graph for utf16.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  join
 
namespace  join::utf16
 

Functions

constexpr bool join::utf16::isSurrogate (uint32_t unit) noexcept
 check if code unit is a surrogate.
 
constexpr bool join::utf16::isHighSurrogate (uint32_t unit) noexcept
 check if code unit is a high surrogate.
 
constexpr bool join::utf16::isLowSurrogate (uint32_t unit) noexcept
 check if code unit is a low surrogate.
 
constexpr uint32_t join::utf16::highSurrogate (uint32_t codepoint) noexcept
 get the high surrogate of a supplementary codepoint.
 
constexpr uint32_t join::utf16::lowSurrogate (uint32_t codepoint) noexcept
 get the low surrogate of a supplementary codepoint.
 
constexpr uint32_t join::utf16::combine (uint32_t high, uint32_t low) noexcept
 combine a surrogate pair into a codepoint.
 
int join::utf16::decode (const char16_t *&cur, const char16_t *end, uint32_t &codepoint) noexcept
 decode one codepoint from UTF-16.
 
size_t join::utf16::encode (uint32_t codepoint, char16_t *out) noexcept
 encode one codepoint to UTF-16.