5 releases (breaking)

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

#83 in #icu

Download history 1468/week @ 2022-08-19 1107/week @ 2022-08-26 2637/week @ 2022-09-02 2001/week @ 2022-09-09 2324/week @ 2022-09-16 2438/week @ 2022-09-23 1651/week @ 2022-09-30 1535/week @ 2022-10-07 1750/week @ 2022-10-14 2439/week @ 2022-10-21 2164/week @ 2022-10-28 1908/week @ 2022-11-04 1959/week @ 2022-11-11 1342/week @ 2022-11-18 1635/week @ 2022-11-25 896/week @ 2022-12-02

6,210 downloads per month
Used in icu_provider_cldr

Custom license

255KB
4K 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

~0.6–1.2MB
~27K SLoC