focaccia

Function unicode_full_turkic_case_eq

Source
pub fn unicode_full_turkic_case_eq(left: &str, right: &str) -> bool
Expand description

Check two strings for equality with Full Unicode case folding for Turkic languages.

This function is implemented with a lookup table generated from Unicode case folding tables.

§Examples

assert!(unicode_full_turkic_case_eq("İstanbul", "istanbul"));
assert!(!unicode_full_turkic_case_eq("İstanbul", "Istanbul"));

§Examples – Full

Turkic case folding is largely compatible with full Unicode case folding.

assert!(unicode_full_turkic_case_eq("MASSE", "Maße"));
assert!(!unicode_full_turkic_case_eq("São Paulo", "Sao Paulo"));