7.7
3.10 Racket ASCII
(require cur/stdlib/racket-ascii) | package: cur-lib |
This library defines Racket tools for manipulating ASCII string.
It will eventually be moved out of Cur; do not rely on it.
procedure
(ascii-char? c) → boolean?
c : char?
Returns #t when c is valid as a 7-bit ASCII character, and #f otherwise.
procedure
(ascii-string? str) → boolean?
str : string?
Returns #t when str contains only characters that are valid as
a 7-bit ASCII character, and #f otherwise.
procedure
b : byte?
Converts b into a bit-vector of a length 7, interpreted as a
ASCII character; the sign bit of b is ignored.
procedure
(ascii-bit-vector->byte bv) → byte?
bv : bit-vector?
Converts a bv of length 7, interpreted as an ASCII character, into a
byte.