icu_properties::sets

Function emoji_modifier_base

Source
pub const fn emoji_modifier_base() -> CodePointSetDataBorrowed<'static>
Expand description

Characters that can serve as a base for emoji modifiers

Enabled with the compiled_data Cargo feature.

📚 Help choosing a constructor

§Example

use icu::properties::sets;

let emoji_modifier_base = sets::emoji_modifier_base();

assert!(emoji_modifier_base.contains('✊'));  // U+270A RAISED FIST
assert!(!emoji_modifier_base.contains('⛰'));  // U+26F0 MOUNTAIN