On this page:
ascii-char?
ascii-string?
byte->ascii-bit-vector
ascii-bit-vector->byte
7.7

3.10 Racket ASCII

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

(byte->ascii-bit-vector b)  bit-vector?

  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.