icu_properties::sets

Function extended_pictographic

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

Pictographic symbols, as well as reserved ranges in blocks largely associated with emoji characters

Enabled with the compiled_data Cargo feature.

📚 Help choosing a constructor

§Example

use icu::properties::sets;

let extended_pictographic = sets::extended_pictographic();

assert!(extended_pictographic.contains('🥳')); // U+1F973 FACE WITH PARTY HORN AND PARTY HAT
assert!(!extended_pictographic.contains('🇪'));  // U+1F1EA REGIONAL INDICATOR SYMBOL LETTER E