4 ms·
Now account for Unicode characters (ie, Â -> â) and I’ll be impressed. Shame most programmers only care about ASCII. There is a whole world that exists outside
by xyst 2y ago
Now account for Unicode characters (ie, Â -> â) and I’ll be impressed.
Shame most programmers only care about ASCII. There is a whole world that exists outside of the standard [a-z,A-Z,0-9] character set
- rurban 2y agoHe wrote about tolower(), not towlower()/wcslwr().
- deleted 2y ago[deleted]
- Brananarchy 2y agoC tolower() is locale aware and handles utf-8 as well as many other encodings
- fanf2 2y agoIt can only handle single-byte character sets, not UTF-8