Function icu_properties::sets::grapheme_extend

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

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

Enabled with the compiled_data Cargo feature.

📚 Help choosing a constructor

§Example

use icu::properties::sets;

let grapheme_extend = sets::grapheme_extend();

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