This library defines ASCII characters and strings, and a
#%datum
extension for ASCII string literals.
A datatype representing an ASCII character, as a bit vector.
Examples:
> ""
> "1"
(cons (Ascii)(ascii (false)(true)(true)(false)(false)(false)(true))(nil (Ascii)))
The type of ASCII string; equivalent to
(List Ascii ).
The empty string; equivalent to
(nil Ascii ) and
"".
Concatenates two strings, appending str2 to the end of str1.
Returns the length of the string str.
( meta-ascii->asciisynchar)→syntax?
A meta-procedure, provided at phase 1, for converting a Racket (meta-level)
ascii-char? into syntax representing an
Ascii . If
syn
is provided, it is used in error messages in the even that
char is not
an
ascii-char? .
( meta-string->ascii-strsynstr)→syntax?
A meta-procedure, provided at phase 1, for converting a Racket (meta-level)
ascii-string? into syntax representing an
Ascii-Str .
If
syn is provided, it is used in error messages in the even that
str is not an
ascii-string? .
A meta-procedure, provided at phase 1, for parsing ASCII string literals.
This module automatically updates
#%datum using this procedure.
Examples:
> ""
> "1"
(cons (Ascii)(ascii (false)(true)(true)(false)(false)(false)(true))(nil (Ascii)))
A meta-procedure, provided at phase 1, for converting syntax representing a
Ascii literal into a Racket (meta-level)
ascii-char? .
A meta-procedure, provided at phase 1, for converting syntax representing a
Ascii-Str literal into a Racket (meta-level)
ascii-string? .