Skip to main content

lang_matches

Function lang_matches 

Source
pub fn lang_matches(preferred: &str, lang: &str) -> bool
Expand description

Whether preferred matches lang by BCP 47 prefix, ASCII case-insensitive.