#include <hikogui/unicode/ucd_decompositions.hpp>
|
|
using | value_type = uint32_t |
|
| 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.
|
|
|
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.
◆ canonical_equivalent()
| std::optional< char32_t > hi::v1::ucd_decomposition_info::canonical_equivalent |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
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.
- Returns
- The canonical equivalent code-point or nullopt if there is not equivalent.
◆ cp_index()
| size_t hi::v1::ucd_decomposition_info::cp_index |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
The code-point-index into the decomposition code-point table.
◆ cp_size()
| size_t hi::v1::ucd_decomposition_info::cp_size |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
The number of code-points to extract from the decomposition code-point table.
◆ decompose()
|
|
inlinenodiscardconstexprnoexcept |
Decompose the code-point.
Performance should be okay due to small-string optimization.
- Returns
- The decomposed code-points.
◆ should_decompose()
| bool hi::v1::ucd_decomposition_info::should_decompose |
( |
size_t | decomposition_mask | ) |
const |
|
inlinenodiscardconstexprnoexcept |
Check if this code-point should be decomposed based on a mask of compatibility flags.
- Parameters
-
| decomposition_mask | A mask of decomposition-types. |
- Returns
- True if this code-point should be decomposed.
◆ type()
|
|
inlinenodiscardconstexprnoexcept |
Decomposition compatibility type for this code-point.
The documentation for this struct was generated from the following file: