pub fn exemplars_punctuation(
locale: &DataLocale,
) -> Result<UnicodeSetData, PropertiesError>
Expand description
Get the “punctuation” set of exemplar characters.
✨ Enabled with the compiled_data
Cargo feature.
§Examples
use icu::locid::locale;
use icu::properties::exemplar_chars;
let data =
exemplar_chars::exemplars_punctuation(&locale!("en").into())
.expect("locale should be present");
let exemplars_punctuation = data.as_borrowed();
assert!(!exemplars_punctuation.contains_char('0'));
assert!(!exemplars_punctuation.contains_char('9'));
assert!(!exemplars_punctuation.contains_char('%'));
assert!(exemplars_punctuation.contains_char(','));
assert!(exemplars_punctuation.contains_char('.'));
assert!(exemplars_punctuation.contains_char('!'));
assert!(exemplars_punctuation.contains_char('?'));