pub fn load_grapheme_extend(
    provider: &impl DataProvider<GraphemeExtendV1Marker>
) -> Result<CodePointSetData, PropertiesError>
Expand description

Property used to define “Grapheme extender”. See D59 in Chapter 3, Conformance in the Unicode Standard.


use icu_properties::sets;

let data =
        .expect("The data should be valid");
let grapheme_extend = data.as_borrowed();

assert!(!grapheme_extend.contains('ക'));  // U+0D15 MALAYALAM LETTER KA
assert!(!grapheme_extend.contains('\u{0D3F}'));  // U+0D3F MALAYALAM VOWEL SIGN I
assert!(grapheme_extend.contains('\u{0D3E}'));  // U+0D3E MALAYALAM VOWEL SIGN AA