icu_properties::exemplar_chars

Function exemplars_auxiliary

Source
pub fn exemplars_auxiliary(
    locale: &DataLocale,
) -> Result<UnicodeSetData, PropertiesError>
Expand description

Get the “auxiliary” set of exemplar characters.

Enabled with the compiled_data Cargo feature.

📚 Help choosing a constructor

§Examples

use icu::locid::locale;
use icu::properties::exemplar_chars;

let data =
    exemplar_chars::exemplars_auxiliary(&locale!("en").into())
    .expect("locale should be present");
let exemplars_auxiliary = data.as_borrowed();

assert!(!exemplars_auxiliary.contains_char('a'));
assert!(!exemplars_auxiliary.contains_char('z'));
assert!(!exemplars_auxiliary.contains("a"));
assert!(exemplars_auxiliary.contains("ä"));
assert!(!exemplars_auxiliary.contains("ng"));
assert!(!exemplars_auxiliary.contains("A"));