Function icu_properties::maps::canonical_combining_class

source ·
pub const fn canonical_combining_class() -> CodePointMapDataBorrowed<'static, CanonicalCombiningClass>
Expand description

Return a CodePointMapData for the Canonical_Combining_Class Unicode property. See CanonicalCombiningClass.

Enabled with the compiled_data Cargo feature.

📚 Help choosing a constructor

Note: See icu::normalizer::CanonicalCombiningClassMap for the preferred API to look up the Canonical_Combining_Class property by scalar value.

§Example

use icu::properties::{maps, CanonicalCombiningClass};

assert_eq!(maps::canonical_combining_class().get('a'), CanonicalCombiningClass::NotReordered); // U+0061: LATIN SMALL LETTER A
assert_eq!(maps::canonical_combining_class().get32(0x0301), CanonicalCombiningClass::Above); // U+0301: COMBINING ACUTE ACCENT