Function icu::properties::sets::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