icu_locid_macros

Crates.ioicu_locid_macros
lib.rsicu_locid_macros
version0.5.0
sourcesrc
created_at2020-10-15 15:30:29.006178
updated_at2022-01-31 21:55:19.722523
descriptionproc-macros for icu_locid
homepage
repositoryhttps://github.com/unicode-org/icu4x
max_upload_size
id300036
size28,759
icu4x-release (github:unicode-org:icu4x-release)

documentation

README

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.

Commit count: 3247

cargo fmt