macro_rules! subtags_region {
    ($region:literal) => { ... };
}
Expand description

A macro allowing for compile-time construction of valid Region subtag.

The macro will perform syntax canonicalization of the tag.

Examples

use icu::locid::{subtags_region as region, subtags::Region};

const CN: Region = region!("cn");

let cn: Region = "cn".parse().unwrap();

assert_eq!(CN, cn);