u5e
UnicodeTextC++Library
|
Native representation of a codepoint. More...
#include <u5e/codepoint.hpp>
Public Member Functions | |
constexpr | codepoint () |
constexpr | codepoint (int32_t v) |
constexpr | codepoint (const codepoint &x)=default |
constexpr codepoint & | operator= (const codepoint &x)=default |
constexpr codepoint & | operator= (int c) |
constexpr | operator int () const |
Public Attributes | |
codepoint_traits::int_type | value |
Native representation of a codepoint.
Explicity class in order to hijack overloads, such that we only build codepoints out of known encodings and we only write to encodings out of known codepoints.
Definition at line 15 of file codepoint.hpp.
|
inline |
Default constructor, starts as NULL.
Definition at line 25 of file codepoint.hpp.
|
inline |
Implicit constructor from an integer value.
Definition at line 30 of file codepoint.hpp.
|
default |
Copy constructor.
|
inline |
Override int operator to return the codepoint value.
Definition at line 50 of file codepoint.hpp.
Assignment operator from another codepoint.
|
inline |
Assignment operator from an int.
Definition at line 45 of file codepoint.hpp.
codepoint_traits::int_type u5e::codepoint::value |
A codepoint has an integer value type.
Definition at line 20 of file codepoint.hpp.