|
HikoGUI
A low latency retained GUI
|
#include <hikogui/unicode/ucd_decompositions.hpp>
Public Types | |
| using | value_type = uint32_t |
Public Member Functions | |
| constexpr size_t | cp_index () const noexcept |
| The code-point-index into the decomposition code-point table. | |
| constexpr size_t | cp_size () const noexcept |
| The number of code-points to extract from the decomposition code-point table. | |
| constexpr unicode_decomposition_type | type () const noexcept |
| Decomposition compatibility type for this code-point. | |
| constexpr bool | should_decompose (size_t decomposition_mask) const noexcept |
| Check if this code-point should be decomposed based on a mask of compatibility flags. | |
| constexpr std::u32string | decompose () const noexcept |
| Decompose the code-point. | |
| constexpr std::optional< char32_t > | canonical_equivalent () const noexcept |
| Get the canonical equivalent of this code-point. | |
Data Fields | |
| value_type | value |
Static Public Attributes | |
| static constexpr unsigned | cp_index_width = 15 |
| static constexpr unsigned | cp_size_width = 5 |
| static constexpr unsigned | type_width = 5 |
The decomposition info is used to determine how to decompose a code-point.
|
inlineconstexprnoexcept |
Get the canonical equivalent of this code-point.
The canonical equivalent is the code-point after NFC-normalization. This is equal to canonical decomposition to a single code-point.
|
inlineconstexprnoexcept |
The code-point-index into the decomposition code-point table.
|
inlineconstexprnoexcept |
The number of code-points to extract from the decomposition code-point table.
|
inlineconstexprnoexcept |
Decompose the code-point.
Performance should be okay due to small-string optimization.
|
inlineconstexprnoexcept |
Check if this code-point should be decomposed based on a mask of compatibility flags.
| decomposition_mask | A mask of decomposition-types. |
|
inlineconstexprnoexcept |
Decomposition compatibility type for this code-point.