UnicodeData
struct · ferroui-base · v0.5.0
struct UnicodeData
Helper for looking up unicode character class information.
This file contains only the packing-layout constants; the trie-backed
lookup helpers live in unicode_data_lookups.rs. The split mirrors the
upstream one, where the generator of the tables consumes the constants
without needing the generated tries (which it produces).
Members
get_general_categoryget_scriptget_bi_di_classget_bi_di_paired_bracket_typeget_bi_di_paired_bracketget_line_break_classget_word_break_classget_grapheme_cluster_breakget_sentence_break_classget_is_emojiget_has_emoji_presentationget_is_default_ignorableget_east_asian_width_classhas_script_extension
get_general_category
fn get_general_category(codepoint: u32) -> GeneralCategory
Gets the GeneralCategory for a Unicode codepoint.
get_script
fn get_script(codepoint: u32) -> Script
Gets the Script for a Unicode codepoint.
get_bi_di_class
fn get_bi_di_class(codepoint: u32) -> BidiClass
Gets the BidiClass for a Unicode codepoint.
get_bi_di_paired_bracket_type
fn get_bi_di_paired_bracket_type(codepoint: u32) -> BidiPairedBracketType
Gets the BidiPairedBracketType for a Unicode codepoint.
get_bi_di_paired_bracket
fn get_bi_di_paired_bracket(codepoint: u32) -> Codepoint
Gets the paired bracket for a Unicode codepoint.
get_line_break_class
fn get_line_break_class(codepoint: u32) -> LineBreakClass
Gets the line break class for a Unicode codepoint.
get_word_break_class
fn get_word_break_class(codepoint: u32) -> WordBreakClass
Gets the word break class for a Unicode codepoint.
get_grapheme_cluster_break
fn get_grapheme_cluster_break(codepoint: u32) -> GraphemeBreakClass
Gets the grapheme break type for the Unicode codepoint.
get_sentence_break_class
fn get_sentence_break_class(codepoint: u32) -> SentenceBreakClass
Gets the sentence break class for the Unicode codepoint (UAX #29).
get_is_emoji
fn get_is_emoji(codepoint: u32) -> bool
Gets whether the codepoint has the Unicode Emoji property.
get_has_emoji_presentation
fn get_has_emoji_presentation(codepoint: u32) -> bool
Gets whether the codepoint has the Unicode Emoji_Presentation property, i.e. whether
it defaults to an emoji presentation when no variation selector is present.
get_is_default_ignorable
fn get_is_default_ignorable(codepoint: u32) -> bool
Gets whether the codepoint has the Unicode Default_Ignorable_Code_Point property.
get_east_asian_width_class
fn get_east_asian_width_class(codepoint: u32) -> EastAsianWidthClass
Gets the EastAsianWidth class for the Unicode codepoint.
has_script_extension
fn has_script_extension(codepoint: u32, script: Script) -> bool
Determines whether the given codepoint's Script_Extensions property (UAX #24) contains
the supplied script. When the codepoint has no explicit Script_Extensions entry the
extensions set is taken to be the singleton of the codepoint's primary
Script property.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.