isAlphabet

bool
isAlphabet
(
string s
)

Return Value

Type: bool

true if all characters in a string are alphabets, uppercase, lowercase, or both

Examples

assert("aBcDEf".isAlphabet == true);
assert("ABCd_".isAlphabet == false);
assert("ABC12".isAlphabet == false);

Meta