macro_rules! subtags_region { ($region:literal) => { ... }; }
A macro allowing for compile-time construction of valid Region subtag.
Region
The macro will perform syntax canonicalization of the tag.
use icu::locid::{subtags_region as region, subtags::Region}; const CN: Region = region!("cn"); let cn: Region = "cn".parse().unwrap(); assert_eq!(CN, cn);