Function icu_properties::sets::emoji_modifier

source ·
pub const fn emoji_modifier() -> CodePointSetDataBorrowed<'static>
Expand description

Characters that are emoji modifiers

Enabled with the compiled_data Cargo feature.

📚 Help choosing a constructor

§Example

use icu::properties::sets;

let emoji_modifier = sets::emoji_modifier();

assert!(emoji_modifier.contains32(0x1F3FD));  // EMOJI MODIFIER FITZPATRICK TYPE-4
assert!(!emoji_modifier.contains32(0x200C));  // ZERO WIDTH NON-JOINER