You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't checked, but I'm 95% certain that they do this because some characters expand into multiple characters when casefolding which wouldn't fit into the buffer of the str, so we need a new buffer. Since we don't know the size beforehand, we just return a String.
Probably should link to char.to_lowercase and char.to_uppercase.