Expand description
Unicode Extensions provide information about user preferences in a given locale.
The main struct for this extension is Unicode which contains Keywords and
Attributes.
§Examples
use icu::locid::extensions::unicode::{attribute, key, value, Unicode};
use icu::locid::Locale;
let loc: Locale = "en-US-u-foobar-hc-h12".parse().expect("Parsing failed.");
assert_eq!(
    loc.extensions.unicode.keywords.get(&key!("hc")),
    Some(&value!("h12"))
);
assert!(loc
    .extensions
    .unicode
    .attributes
    .contains(&attribute!("foobar")));Macros§
- A macro allowing for compile-time construction of validAttributesubtags.
- A macro allowing for compile-time construction of validKeysubtags.
- A macro allowing for compile-time construction of valid UnicodeValuesubtag.
Structs§
- An attribute used in a set ofAttributes.
- A set ofAttributeelements as defined inUnicode Extension Attributes.
- A key used in a list ofKeywords.
- Unicode Extensions provide information about user preferences in a given locale.
- A value used in a list ofKeywords.