0.5.0 Jan 31, 2022
0.4.0 Nov 2, 2021
0.3.0 Jul 29, 2021
0.2.0 Apr 29, 2021
0.1.0 Oct 15, 2020

#73 in #region

Download history 2253/week @ 2023-12-15 1162/week @ 2023-12-22 1415/week @ 2023-12-29 930/week @ 2024-01-05 1601/week @ 2024-01-12 1750/week @ 2024-01-19 2614/week @ 2024-01-26 2470/week @ 2024-02-02 2396/week @ 2024-02-09 1040/week @ 2024-02-16 1691/week @ 2024-02-23 1772/week @ 2024-03-01 2529/week @ 2024-03-08 1759/week @ 2024-03-15 2068/week @ 2024-03-22 1952/week @ 2024-03-29

8,669 downloads per month
Used in icu_provider_cldr

Custom license

275KB
4.5K SLoC

icu_locid_macros crates.io

icu_locid_macros is one of the ICU4X components.

This API provides convenience macros for icu_locid.

Examples

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")));

More Information

For more information on development, authorship, contributing etc. please visit ICU4X home page.


lib.rs:

icu_locid_macros is one of the ICU4X components.

This API provides convenience macros for icu_locid.

Examples

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")));

Dependencies

~3MB
~59K SLoC