macro_rules! script {
($script:literal) => { ... };
}
Expand description
A macro allowing for compile-time construction of valid Script
subtag.
The macro will perform syntax canonicalization of the tag.
Examples
use icu::locid::{script, subtags::Script};
const ARAB: Script = script!("aRAB");
let arab: Script = "aRaB".parse().unwrap();
assert_eq!(ARAB, "Arab");
assert_eq!(ARAB, arab);