1
0
Fork 0
cl-sites/HyperSpec-7-0/HyperSpec/Body/13_aa.htm

50 lines
6.1 KiB
HTML
Raw Permalink Normal View History

2024-04-01 10:24:07 +02:00
<!-- Common Lisp HyperSpec (TM), version 7.0 generated by Kent M. Pitman on Mon, 11-Apr-2005 2:31am EDT -->
<HTML>
<HEAD>
<TITLE>CLHS: Section 13.1.1</TITLE>
<LINK HREF="../Data/clhs.css" REL="stylesheet" TYPE="text/css" />
<META HTTP-EQUIV="Author" CONTENT="Kent M. Pitman">
<META HTTP-EQUIV="Organization" CONTENT="LispWorks Ltd.">
<LINK REL=TOP HREF="../Front/index.htm">
<LINK REL=COPYRIGHT HREF="../Front/Help.htm#Legal">
<LINK REL=DISCLAIMER HREF="../Front/Help.htm#Disclaimer">
<LINK REL=PREV HREF="13_a.htm">
<LINK REL=UP HREF="13_a.htm">
<LINK REL=NEXT HREF="13_ab.htm">
</HEAD>
<BODY>
<H1><A REV=MADE HREF="http://www.lispworks.com/"><IMG WIDTH=80 HEIGHT=65 ALT="[LISPWORKS]" SRC="../Graphics/LWSmall.gif" ALIGN=Bottom></A><A REL=TOP HREF="../Front/index.htm"><IMG WIDTH=237 HEIGHT=65 ALT="[Common Lisp HyperSpec (TM)]" SRC="../Graphics/CLHS_Sm.gif" ALIGN=Bottom></A> <A REL=PREV HREF="13_a.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="13_a.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="13_ab.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
<HR>
<H2>
13.1.1 Introduction to Characters</H2> <P>
A <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>character</I></A> is an <A REL=DEFINITION HREF="26_glo_o.htm#object"><I>object</I></A> 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 <A REL=DEFINITION HREF="26_glo_s.htm#string"><I>string</I></A> or a text <A REL=DEFINITION HREF="26_glo_s.htm#stream"><I>stream</I></A>). <P>
Common Lisp allows an implementation to provide support for international language <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>characters</I></A> as well as <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>characters</I></A> used in specialized arenas (e.g., mathematics). <P>
The following figures contain lists of <A REL=DEFINITION HREF="26_glo_d.htm#defined_name"><I>defined names</I></A> applicable to <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>characters</I></A>. <P>
The next figure lists some <A REL=DEFINITION HREF="26_glo_d.htm#defined_name"><I>defined names</I></A> relating to <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>character</I></A> <A REL=DEFINITION HREF="26_glo_a.htm#attribute"><I>attributes</I></A> and <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>character</I></A> <A REL=DEFINITION HREF="26_glo_p.htm#predicate"><I>predicates</I></A>. <P>
<PRE>
<A REL=DEFINITION HREF="f_alpha_.htm#alpha-char-p">alpha-char-p</A> <A REL=DEFINITION HREF="f_chareq.htm#char-not-equal">char-not-equal</A> <A REL=DEFINITION HREF="f_chareq.htm#charGT">char&gt;</A>
<A REL=DEFINITION HREF="f_alphan.htm#alphanumericp">alphanumericp</A> <A REL=DEFINITION HREF="f_chareq.htm#char-not-greaterp">char-not-greaterp</A> <A REL=DEFINITION HREF="f_chareq.htm#charGTEQ">char&gt;=</A>
<A REL=DEFINITION HREF="f_upper_.htm#both-case-p">both-case-p</A> <A REL=DEFINITION HREF="f_chareq.htm#char-not-lessp">char-not-lessp</A> <A REL=DEFINITION HREF="f_digi_1.htm#digit-char-p">digit-char-p</A>
<A REL=DEFINITION HREF="v_char_c.htm#char-code-limit">char-code-limit</A> <A REL=DEFINITION HREF="f_chareq.htm#charSLEQ">char/=</A> <A REL=DEFINITION HREF="f_graphi.htm#graphic-char-p">graphic-char-p</A>
<A REL=DEFINITION HREF="f_chareq.htm#char-equal">char-equal</A> <A REL=DEFINITION HREF="f_chareq.htm#charLT">char&lt;</A> <A REL=DEFINITION HREF="f_upper_.htm#lower-case-p">lower-case-p</A>
<A REL=DEFINITION HREF="f_chareq.htm#char-greaterp">char-greaterp</A> <A REL=DEFINITION HREF="f_chareq.htm#charLTEQ">char&lt;=</A> <A REL=DEFINITION HREF="f_std_ch.htm#standard-char-p">standard-char-p</A>
<A REL=DEFINITION HREF="f_chareq.htm#char-lessp">char-lessp</A> <A REL=DEFINITION HREF="f_chareq.htm#charEQ">char=</A> <A REL=DEFINITION HREF="f_upper_.htm#upper-case-p">upper-case-p</A>
</PRE>
<P><B>Figure 13-1. Character defined names -- 1</B> <P>
The next figure lists some <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>character</I></A> construction and conversion <A REL=DEFINITION HREF="26_glo_d.htm#defined_name"><I>defined names</I></A>. <P>
<PRE>
<A REL=DEFINITION HREF="f_char_c.htm#char-code">char-code</A> <A REL=DEFINITION HREF="f_char_n.htm#char-name">char-name</A> <A REL=DEFINITION HREF="f_code_c.htm#code-char">code-char</A>
<A REL=DEFINITION HREF="f_char_u.htm#char-downcase">char-downcase</A> <A REL=DEFINITION HREF="f_char_u.htm#char-upcase">char-upcase</A> <A REL=DEFINITION HREF="f_digit_.htm#digit-char">digit-char</A>
<A REL=DEFINITION HREF="f_char_i.htm#char-int">char-int</A> <A REL=DEFINITION HREF="a_ch.htm#character">character</A> <A REL=DEFINITION HREF="f_name_c.htm#name-char">name-char</A>
</PRE>
<P><B>Figure 13-2. Character defined names -- 2</B> <P>
<P><HR>The following <A REL=META HREF="../Front/X3J13Iss.htm">X3J13 cleanup issue</A>, <I>not part of the specification</I>, applies to this section:<P><UL><LI> <A REL=CHILD HREF="../Issues/iss042.htm">CHARACTER-PROPOSAL:2-6-1</A><P></UL><HR>
<A REL=NAVIGATOR HREF="../Front/StartPts.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Starting Points]" SRC="../Graphics/StartPts.gif" ALIGN=Bottom></A><A REL=TOC HREF="../Front/Contents.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Contents]" SRC="../Graphics/Contents.gif" ALIGN=Bottom></A><A REL=INDEX HREF="../Front/X_Master.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Index]" SRC="../Graphics/Index.gif" ALIGN=Bottom></A><A REL=INDEX HREF="../Front/X_Symbol.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Symbols]" SRC="../Graphics/Symbols.gif" ALIGN=Bottom></A><A REL=GLOSSARY HREF="../Body/26_a.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Glossary]" SRC="../Graphics/Glossary.gif" ALIGN=Bottom></A><A HREF="../Front/X3J13Iss.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Issues]" SRC="../Graphics/Issues.gif" ALIGN=Bottom></A><BR>
<A REL=COPYRIGHT HREF="../Front/Help.htm#Legal"><I>Copyright 1996-2005, LispWorks Ltd. All rights reserved.</I></A><P>
</BODY>
</HTML>