Skip to main content

fold_case

Function fold_case 

Source
pub fn fold_case(text: &str) -> String
Expand description

text compared without case the way a case-insensitive filesystem compares names: lowercased, and each character whose full case folding is ASCII written as that folding.

to_lowercase alone is not enough: APFS folds ſ to s, ß to ss and fi to fi, which lowercasing leaves as they are, so .agentſ/ſkills opens .agents/skills there while comparing unequal here.