Function regex_syntax::unicode::gencat
source ยท fn gencat(canonical_name: &'static str) -> Result<ClassUnicode, Error>
Expand description
Returns the Unicode HIR class corresponding to the given general category.
Name canonicalization is assumed to be performed by the caller.
If the given general category could not be found, or if the general category data is not available, then an error is returned.