| attribute.rs |
|
1037 |
- |
| attributes.rs |
|
6108 |
- |
| key.rs |
|
1027 |
- |
| keywords.rs |
|
13696 |
- |
| mod.rs |
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::locale::extensions::unicode::{attribute, key, value, Unicode};
use icu::locale::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")));
``` |
8945 |
- |
| subdivision.rs |
|
5866 |
- |
| value.rs |
|
11108 |
- |