what is the equivalent function for isalpha or isalnum using wchar_t?
wctype ?
an example would be nice also
thanks
The function isalpha() is used to check that a character is an alphabet or not. This function is declared in “ctype. h” header file. It returns an integer value, if the argument is an alphabet otherwise, it returns zero.
The isalpha() function is defined in the ctype header file in the C standard library. It is used to check whether a character is an alphabet or not. It returns a non-zero if the character is an alphabet and zero otherwise.
iswalpha
, iswalnum
. Same usage.
Take a look at std::isaplha<charT>
from <locale>
. Could use that as std::isalpha<wchar_t>
.
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