isASCII

pragma(inline, true)
bool
isASCII
@safe pure nothrow @nogc
(
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