| Crates.io | icu_locid_macros |
| lib.rs | icu_locid_macros |
| version | 0.5.0 |
| created_at | 2020-10-15 15:30:29.006178+00 |
| updated_at | 2022-01-31 21:55:19.722523+00 |
| description | proc-macros for icu_locid |
| homepage | |
| repository | https://github.com/unicode-org/icu4x |
| max_upload_size | |
| id | 300036 |
| size | 28,759 |
icu_locid_macros is one of the ICU4X components.
This API provides convenience macros for [icu_locid].
use icu_locid_macros::{language, region, langid};
let lid = langid!("EN_US");
assert_eq!(lid.language, language!("en"));
assert_eq!(lid.region, Some(region!("US")));
For more information on development, authorship, contributing etc. please visit ICU4X home page.