macro_rules! subtags_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::{subtags_script as script, subtags::Script};

const ARAB: Script = script!("aRAB");

let arab: Script = "aRaB".parse().unwrap();

assert_eq!(ARAB, arab);