pub const fn general_category() -> CodePointMapDataBorrowed<'static, GeneralCategory>
Expand description
Return a CodePointMapDataBorrowed
for the General_Category Unicode enumerated property. See GeneralCategory
.
โจ Enabled with the compiled_data
Cargo feature.
๐ Help choosing a constructor
ยงExample
use icu::properties::{maps, GeneralCategory};
assert_eq!(maps::general_category().get('ๆจ'), GeneralCategory::OtherLetter); // U+6728
assert_eq!(maps::general_category().get('๐'), GeneralCategory::OtherSymbol); // U+1F383 JACK-O-LANTERN