std::isalpha
From cppreference.com
| Defined in header <cctype>
|
||
| int isalpha( int ch ); |
||
Checks if the given character is an alphabetic character as classified by the currently installed C locale. In the default locale, the following characters are alphabetic:
- uppercase letters
ABCDEFGHIJKLMNOPQRSTUVWXYZ - lowercase letters
abcdefghijklmnopqrstuvwxyz
In locales other than "C", an alphabetic character is a character for which std::isupper() or std::islower() returns non-zero or any other character considered alphabetic by the locale. In any case, std::iscntrl(), std::isdigit(), std::ispunct() and std::isspace() will return zero for this character.
The behavior is undefined if the value of ch is not representable as unsigned char and is not equal to EOF.
Contents |