User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cl:functions:code-char [2019/07/14 17:00]
cl:functions:code-char [2019/10/19 05:00] (current)
Line 1: Line 1:
 +====== Function CODE-CHAR ======
 +
 +====Syntax====
 +  * **code-char** //code// → //char-p//
 +
 +====Arguments and Values====
 +  * //code// - a //​[[CL:​Glossary:​character code]]//.
 +  * //char-p// - a //​[[CL:​Glossary:​character]]//​ or **[[CL:​Constant Variables:​nil]]**.
 +
 +====Description====
 +Returns a //​[[CL:​Glossary:​character]]//​ with the //​[[CL:​Glossary:​code]]//​ //​[[CL:​Glossary:​attribute]]//​ given by //code//. If no such //​[[CL:​Glossary:​character]]//​ exists and one cannot be created, **[[CL:​Constant Variables:​nil]]** is returned.
 +
 +====Examples====
 +
 +<​blockquote>​
 +(code-char 65.) <​r>#​\A ; in an implementation using ASCII codes </r>
 +(code-char ([[CL:​Functions:​char-code]] #\Space)) <​r>#​\Space ; in any implementation</​r>​
 +</​blockquote>​
 +
 +====Affected By====
 +The //​[[CL:​Glossary:​implementation]]//'​s character encoding.
 +
 +====Exceptional Situations====
 +None.
 +
 +====See Also====
 +**[[CL:​Functions:​char-code|Function CHAR-CODE]]**
 +
 +====Notes====
 +
 +\issue{CHARACTER-PROPOSAL:​2-1-1}