I have a Unicode string consisting of letters, digits and punctuation marks. Ho can I detect characters that are digits and letters (not necessarily ASCII) with a C++ standard library or Win32 API?
Another option is the Win32 API call GetStringTypeW()
iswdigit(), iswalpha() and iswalnum() are the functions you are looking for.
Cheers !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With