Function regex_syntax::unicode::script

source ยท
fn script(canonical_name: &'static str) -> Result<ClassUnicode, Error>
Expand description

Returns the Unicode HIR class corresponding to the given script.

Name canonicalization is assumed to be performed by the caller.

If the given script could not be found, or if the script data is not available, then an error is returned.