icu_properties::sets

Function emoji_component

Source
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'));