isAlpha

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

Return Value

Type: bool

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

Examples

assert( isAlpha('A'));
assert(!isAlpha('1'));
assert(!isAlpha('#'));

// N.B.: does not return true for non-ASCII Unicode alphabetic characters:
assert(!isAlpha('á'));

Meta