|
HikoGUI
A low latency retained GUI
|
#include <hikogui/unicode/unicode_description.hpp>
Public Member Functions | |
| unicode_description (unicode_description const &)=delete | |
| unicode_description & | operator= (unicode_description const &)=delete |
| constexpr | unicode_description (unicode_description &&) noexcept=default |
| constexpr unicode_description & | operator= (unicode_description &&) noexcept=default |
| constexpr | unicode_description (unicode_general_category general_category, unicode_grapheme_cluster_break grapheme_cluster_break, unicode_line_break_class line_break_class, unicode_word_break_property word_break_property, unicode_sentence_break_property sentence_break_property, unicode_east_asian_width east_asian_width, unicode_script script, unicode_bidi_class bidi_class, unicode_bidi_bracket_type bidi_bracket_type, char32_t bidi_mirroring_glyph, uint8_t canonical_combining_class, unicode_decomposition_type decomposition_type, uint32_t decomposition_index, uint16_t composition_index) noexcept |
| constexpr unicode_general_category | general_category () const noexcept |
| The general category of this code-point. | |
| constexpr unicode_grapheme_cluster_break | grapheme_cluster_break () const noexcept |
| The grapheme cluster break of this code-point. | |
| constexpr unicode_line_break_class | line_break_class () const noexcept |
| constexpr unicode_word_break_property | word_break_property () const noexcept |
| constexpr unicode_sentence_break_property | sentence_break_property () const noexcept |
| constexpr unicode_east_asian_width | east_asian_width () const noexcept |
| constexpr unicode_bidi_class | bidi_class () const noexcept |
| The bidi class of this code-point This function is used by the bidirectional algorithm to figure out if the code-point represents a character that is written left-to-right or right-to-left. | |
| constexpr unicode_script | script () const noexcept |
| Get the script of this character. | |
| constexpr unicode_bidi_bracket_type | bidi_bracket_type () const noexcept |
| Get the bidi bracket type. | |
| constexpr char32_t | bidi_mirroring_glyph () const noexcept |
| Get the mirrored glyph. | |
| constexpr unicode_decomposition_type | decomposition_type () const noexcept |
| This character has a canonical decomposition. | |
| constexpr uint8_t | canonical_combining_class () const noexcept |
| Get the combining class. | |
| std::u32string | decompose () const noexcept |
| Decompose this code-point. | |
| char32_t | compose (char32_t other) const noexcept |
| Compose this code-point with another. | |
| constexpr char32_t | canonical_equivalent () const noexcept |
| Get the canonical equivalent of this code-point. | |
Static Public Member Functions | |
| static unicode_description const & | find (char32_t code_point) noexcept |
| Find a code-point in the global unicode_description table. | |
Friends | |
| bool | operator== (unicode_description const &lhs, unicode_general_category const &rhs) noexcept |
| bool | operator== (unicode_description const &lhs, unicode_decomposition_type const &rhs) noexcept |
| bool | operator== (unicode_description const &lhs, unicode_bidi_bracket_type const &rhs) noexcept |
| bool | operator== (unicode_description const &lhs, unicode_bidi_class const &rhs) noexcept |
| bool | operator== (unicode_description const &lhs, unicode_east_asian_width const &rhs) noexcept |
| bool | operator== (unicode_description const &lhs, unicode_sentence_break_property const &rhs) noexcept |
| bool | operator== (unicode_description const &lhs, unicode_line_break_class const &rhs) noexcept |
| bool | operator== (unicode_description const &lhs, unicode_word_break_property const &rhs) noexcept |
| bool | operator== (unicode_description const &lhs, unicode_grapheme_cluster_break const &rhs) noexcept |
| bool | is_C (unicode_description const &rhs) noexcept |
Description of a unicode code point.
This class holds information of a unicode code point.
The information is compressed to use bit-fields to reduce memory usage of the unicode database.
|
inlineconstexprnoexcept |
Get the bidi bracket type.
This function is used by the bidirectional algorithm for mirroring characters when needing to reverse the writing direction.
|
inlineconstexprnoexcept |
The bidi class of this code-point This function is used by the bidirectional algorithm to figure out if the code-point represents a character that is written left-to-right or right-to-left.
|
inlineconstexprnoexcept |
Get the mirrored glyph.
|
inlineconstexprnoexcept |
Get the combining class.
The combing class describes how a code-point combines with other code-points. Specifically the value 0 means that the code-point is a starter character, and the numeric value of the combing class determines the order of the the code-points after a starter before trying to look up composition in the composition table.
|
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.
|
noexcept |
Compose this code-point with another.
| other | The other code-point. |
|
noexcept |
Decompose this code-point.
|
inlineconstexprnoexcept |
This character has a canonical decomposition.
|
staticnoexcept |
Find a code-point in the global unicode_description table.
For any valid unicode code point this function will return a reference to the unicode_description. It may return a unicode_description to the U+fffd 'REPLACEMENT CHARACTER' if the code-point could not be found in the table. Or it may return unicode_description to a single element in a range of code-points, such as for hangul-syllables, or private use areas.
| code_point | The code point to look up. |
|
inlineconstexprnoexcept |
The general category of this code-point.
This function is used to determine what kind of code-point this, this allows you to determine if the code-point is a letter, number, punctuation, white-space, etc.
|
inlineconstexprnoexcept |
The grapheme cluster break of this code-point.
This function is used to determine where to break a string of code-points into grapheme clusters.
|
inlineconstexprnoexcept |
Get the script of this character.