isASCIIString

@safe pure nothrow @nogc
bool
isASCIIString
(
scope const(char)[] input
)

Return Value

Type: bool

true iff x is an ASCII (7-bit clean) set of chars.

Examples

assert(``.isASCIIString);
assert(`_`.isASCIIString);
assert(`a`.isASCIIString);
assert(`ab`.isASCIIString);
assert(`abc`.isASCIIString);
assert(!`å`.isASCIIString);
assert(!`åä`.isASCIIString);
assert(!`åäö`.isASCIIString);

See Also

std.ascii.isASCII. https://forum.dlang.org/post/syaqzkpybhvdehbhffjn@forum.dlang.org

Meta