cppx-core
Namespaces | Functions | Variables
utf16-surrogate-pairs.hpp File Reference
#include <cppx-core/collections/Range_.hpp>
#include <cppx-core/language/types/byte-types.hpp>
#include <cppx-core/meta-template/Enable_if_.hpp>
#include <cppx-core/meta-type/type-traits.hpp>
#include <c/assert.hpp>
#include <c/stdint.hpp>
Include dependency graph for utf16-surrogate-pairs.hpp:

Go to the source code of this file.

Namespaces

 cppx
 
 cppx::utf16
 

Functions

constexpr Range_< unsigned > cppx::utf16::range_of_pair_value_1 (0xD800, 0xDBFF)
 
constexpr Range_< unsigned > cppx::utf16::range_of_pair_value_2 (0xDC00, 0xDFFF)
 
constexpr auto cppx::utf16::code_from_pair (const unsigned v1, const unsigned v2) noexcept -> uint32_t
 
constexpr auto cppx::utf16::pair_value_1_from (const uint32_t code) -> unsigned
 
constexpr auto cppx::utf16::pair_value_2_from (const uint32_t code) -> unsigned
 
template<class Out_iterator >
auto cppx::utf16::from_code_point (const uint32_t code_point, const Out_iterator destination) -> Out_iterator
 

Variables

constexpr uint32_t cppx::utf16::first_beyond = 1uL << 16
 
constexpr unsigned cppx::utf16::max_value = first_beyond - 1