Function focaccia::unicode_full_casecmp

source ·
pub fn unicode_full_casecmp(left: &str, right: &str) -> Ordering
Expand description

Compare two strings with Full Unicode case folding.

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

§Examples

assert_eq!(unicode_full_casecmp("MASSE", "Maße"), Ordering::Equal);
assert_eq!(unicode_full_casecmp("São Paulo", "Sao Paulo"), Ordering::Greater);