isAscii is:exact
Selects the first 128 characters of the Unicode character set,
corresponding to the ASCII character set.
O(n) Test whether
Text contains only ASCII code-points (i.e.
only U+0000 through U+007F).
This is a more efficient version of
all
isAscii.
>>> isAscii ""
True
>>> isAscii "abc\NUL"
True
>>> isAscii "abcd€"
False
isAscii t == all (< '\x80') t
O(n) Test whether
Text contains only ASCII code-points (i.e.
only U+0000 through U+007F).
This is a more efficient version of
all
isAscii.
>>> isAscii ""
True
>>> isAscii "abc\NUL"
True
>>> isAscii "abcd€"
False
isAscii t == all (< '\x80') t
Test whether
ShortText contains only ASCII
code-points (i.e. only U+0000 through U+007F).
This is a more efficient version of
all
isAscii.
>>> isAscii ""
True
>>> isAscii "abc\NUL"
True
>>> isAscii "abcd€"
False
isAscii t == all (< '\x80') t
Is this an ASCII character, i.e., the first 128 characters.
O(n/8) detremine if a
ByteString is ASCII-encoded.