char-code
type: function (subr) location: built-in source file: xlstr.c Common LISP compatible: similar versions: all machines
SYNTAX
(char-code <char> )
<char> - a character expression
DESCRIPTION
The CHAR-CODE function returns the value of the <char> expression.
EXAMPLES
(char-code #\0) ; returns 48 (char-code #\A) ; returns 65 (char-code #\a) ; returns 97 (char-code #\[) ; returns 91 (char-code #\newline) ; returns 10 (char-code (code-char 127)) ; returns 127 (char-code (int-char 255)) ; returns 255
COMMON LISP COMPATIBILITY: Common LISP supports the concept of a complex character that includes not only the ASCII code value, but also fonts and bits. The bits allow for more than 8 bits per character (16 bits is especially useful in oriental languages). The fonts allow for up to 128 different fonts. This is interesting and neat stuff, however, XLISP does not support fonts and bits.
NOTE: Because XLISP does not support fonts and bits (as discussed above), CHAR-CODE and CHAR-INT are identical in use.