icu_properties::sets

Function diacritic

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

Characters that linguistically modify the meaning of another character to which they apply

โœจ Enabled with the compiled_data Cargo feature.

๐Ÿ“š Help choosing a constructor

ยงExample

use icu::properties::sets;

let diacritic = sets::diacritic();

assert!(diacritic.contains('\u{05B3}'));  // HEBREW POINT HATAF QAMATS
assert!(!diacritic.contains('ื'));  // U+05D0 HEBREW LETTER ALEF