isASCII

pragma(inline, true) @safe pure nothrow @nogc
bool
isASCII
(
dchar c
)

Return Value

Type: bool

Whether or not c is in the ASCII character set - i.e. in the range 0 .. 0x7F.

Examples

assert( isASCII('a'));
assert(!isASCII('á'));

Meta