isAlpha

bool
isAlpha
@safe pure nothrow @nogc
(
dchar c
)

Return Value

Type: bool

Whether c is an ASCII letter (A .. Z, a .. z).

Examples

1 assert( isAlpha('A'));
2 assert(!isAlpha('1'));
3 assert(!isAlpha('#'));
4 
5 // N.B.: does not return true for non-ASCII Unicode alphabetic characters:
6 assert(!isAlpha('á'));

Meta