isAlphaNum

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

Return Value

Type: bool

Whether c is a letter or a number (0 .. 9, a .. z, A .. Z).

Examples

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

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

Meta