pub const fn emoji_component() -> CodePointSetDataBorrowed<'static>
Expand description
Characters used in emoji sequences that normally do not appear on emoji keyboards as separate choices, such as base characters for emoji keycaps
โจ Enabled with the compiled_data
Cargo feature.
๐ Help choosing a constructor
ยงExample
use icu::properties::sets;
let emoji_component = sets::emoji_component();
assert!(emoji_component.contains('๐น')); // U+1F1F9 REGIONAL INDICATOR SYMBOL LETTER T
assert!(emoji_component.contains32(0x20E3)); // COMBINING ENCLOSING KEYCAP
assert!(emoji_component.contains('7'));
assert!(!emoji_component.contains('T'));