Function regex_syntax::unicode::canonical_value

source ยท
fn canonical_value(
    vals: &'static [(&'static str, &'static str)],
    normalized_value: &str,
) -> Option<&'static str>
Expand description

Find the canonical property value for the given normalized property value.

The given property values should correspond to the values for the property under question, which can be found using property_values.

If no such property value exists, then None is returned.

The normalized property value must have been normalized according to UAX44 LM3, which can be done using symbolic_name_normalize.