48 ms·
I don't know who you think said wchar_t is Unicode, but it wasn't me. In a given locale, you can almost certainly regard wchar_t as being a continuation of the
by kazinator 5y ago
I don't know who you think said wchar_t is Unicode, but it wasn't me.
In a given locale, you can almost certainly regard wchar_t as being a continuation of the range of unsigned char. If you want to know whether the value UCHAR_MAX + 1 is alpha-numeric, you can't pass that to isalnum, but if that value is in the range of wint_t, you can pass it to iswalnum.
For values 0 to UCHAR_MAX, it would be surprising if isalnum and iswalnum produced different results.