CLCS

Introduction to Characters

A character is an object that represents a unitary token (e.g., a letter, a special symbol, or a "control character") in an aggregate quantity of text (e.g., a string or a text stream).

Common Lisp allows an implementation to provide support for international language characters as well as characters used in specialized arenas (e.g., mathematics).

The following figures contain lists of defined names applicable to characters.

Figure 13–1 lists some defined names relating to character attributes and character predicates.

alpha-char-pchar-not-equalchar>
alphanumericpchar-not-greaterpchar>=
both-case-pchar-not-lesspdigit-char-p
char-code-limitchar/=graphic-char-p
char-equalchar<lower-case-p
char-greaterpchar<=standard-char-p
char-lesspchar=upper-case-p
Figure 13–1: Character defined names – 1

Figure 13–2 lists some character construction and conversion defined names.

char-codechar-namecode-char
char-downcasechar-upcasedigit-char
char-intcharactername-char
Figure 13–2: Character defined names – 2