ECL has only one type of characters, which fits in the C type char
.
The following constants and functions operate on characters.
Constant:CHAR_CODE_LIMIT
Each character is assigned an integer code which ranges from 0 to (
CHAR_CODE_LIMIT
-1).
Function: cl_fixnumCHAR_CODE
(cl_objecto
)Function: cl_fixnumchar_code
(cl_objecto
)Returns the integer code associated to a lisp character. Only
char_code
checks its arguments.
Function: cl_objectCODE_CHAR
(cl_fixnumo
)Returns the lisp character associated to an integer code. It does not check its arguments.
Function: cl_objectcoerce_to_character
(cl_objecto
)Coerces a lisp object to type character. Valid arguments are a character, or a string designator of length 1. In all other cases an error is signaled.