Function icu::properties::sets::load_alphabetic
source · [−]pub fn load_alphabetic(
provider: &impl DataProvider<AlphabeticV1Marker>
) -> Result<CodePointSetData, PropertiesError>
Expand description
Alphabetic characters
Example
use icu_properties::sets;
let data =
sets::load_alphabetic(&icu_testdata::unstable())
.expect("The data should be valid");
let alphabetic = data.as_borrowed();
assert!(!alphabetic.contains('3'));
assert!(!alphabetic.contains('੩')); // U+0A69 GURMUKHI DIGIT THREE
assert!(alphabetic.contains('A'));
assert!(alphabetic.contains('Ä')); // U+00C4 LATIN CAPITAL LETTER A WITH DIAERESIS