Next: Integer enumerations, Previous: Fluid/dynamic bindings, Up: System features
These names are exported by the ascii
structure.
These convert characters to and from their integer ASCII encodings.
Char->ascii
andascii->char
are similar to R5RS'schar->integer
andinteger->char
, but they are guaranteed to use the ASCII encoding. Scheme48'sinteger->char
andchar->integer
deliberately do not use the ASCII encoding to encourage programmers to make use of only what R5RS guarantees.(char->ascii #\a) => 97 (ascii->char 97) => #\a
Ascii-limit
is an integer that is one greater than the highest number thatchar->ascii
may return orascii->char
will accept.Ascii-whitespaces
is a list of the integer encodings of all characters that are considered whitespace: space (32), horizontal tab (9), line-feed/newline (10), vertical tab (11), form-feed/page (12), and carriage return (13).