| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
<html> |
| 3 |
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ --> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 6 |
<title>string (System Class) (ANSI and GNU Common Lisp Document)</title> |
| 7 |
|
| 8 |
<meta name="description" content="string (System Class) (ANSI and GNU Common Lisp Document)"> |
| 9 |
<meta name="keywords" content="string (System Class) (ANSI and GNU Common Lisp Document)"> |
| 10 |
<meta name="resource-type" content="document"> |
| 11 |
<meta name="distribution" content="global"> |
| 12 |
<meta name="Generator" content="makeinfo"> |
| 13 |
<link href="index.html" rel="start" title="Top"> |
| 14 |
<link href="Strings-Dictionary.html" rel="up" title="Strings Dictionary"> |
| 15 |
<link href="base_002dstring.html" rel="next" title="base-string"> |
| 16 |
<link href="Strings-Dictionary.html" rel="prev" title="Strings Dictionary"> |
| 17 |
<style type="text/css"> |
| 18 |
<!-- |
| 19 |
a.summary-letter {text-decoration: none} |
| 20 |
blockquote.indentedblock {margin-right: 0em} |
| 21 |
div.display {margin-left: 3.2em} |
| 22 |
div.example {margin-left: 3.2em} |
| 23 |
div.lisp {margin-left: 3.2em} |
| 24 |
kbd {font-style: oblique} |
| 25 |
pre.display {font-family: inherit} |
| 26 |
pre.format {font-family: inherit} |
| 27 |
pre.menu-comment {font-family: serif} |
| 28 |
pre.menu-preformatted {font-family: serif} |
| 29 |
span.nolinebreak {white-space: nowrap} |
| 30 |
span.roman {font-family: initial; font-weight: normal} |
| 31 |
span.sansserif {font-family: sans-serif; font-weight: normal} |
| 32 |
ul.no-bullet {list-style: none} |
| 33 |
--> |
| 34 |
</style> |
| 35 |
|
| 36 |
|
| 37 |
</head> |
| 38 |
|
| 39 |
<body lang="en"> |
| 40 |
<span id="string-_0028System-Class_0029"></span><div class="header"> |
| 41 |
<p> |
| 42 |
Next: <a href="base_002dstring.html" accesskey="n" rel="next">base-string</a>, Previous: <a href="Strings-Dictionary.html" accesskey="p" rel="prev">Strings Dictionary</a>, Up: <a href="Strings-Dictionary.html" accesskey="u" rel="up">Strings Dictionary</a> </p> |
| 43 |
</div> |
| 44 |
<hr> |
| 45 |
<span id="string-_005bSystem-Class_005d"></span><h4 class="subsection">16.2.1 string [System Class]</h4> |
| 46 |
|
| 47 |
<span id="Class-Precedence-List_003a_003a-56"></span><h4 class="subsubheading">Class Precedence List::</h4> |
| 48 |
<p><b>string</b>, |
| 49 |
<b>vector</b>, |
| 50 |
<b>array</b>, |
| 51 |
<b>sequence</b>, |
| 52 |
<b>t</b> |
| 53 |
</p> |
| 54 |
<span id="Description_003a_003a-456"></span><h4 class="subsubheading">Description::</h4> |
| 55 |
|
| 56 |
<p>A <i>string</i> is a <i>specialized</i> <i>vector</i> |
| 57 |
whose <i>elements</i> are of <i>type</i> <b>character</b> or a <i>subtype</i> of <i>type</i> <b>character</b>. |
| 58 |
When used as a <i>type specifier</i> for object creation, |
| 59 |
<b>string</b> means <tt>(vector character)</tt>. |
| 60 |
</p> |
| 61 |
<span id="Compound-Type-Specifier-Kind_003a_003a-24"></span><h4 class="subsubheading">Compound Type Specifier Kind::</h4> |
| 62 |
|
| 63 |
<p>Abbreviating. |
| 64 |
</p> |
| 65 |
<span id="Compound-Type-Specifier-Syntax_003a_003a-24"></span><h4 class="subsubheading">Compound Type Specifier Syntax::</h4> |
| 66 |
|
| 67 |
<p>(<code>string</code>{<i><tt>[</tt>size<tt>]</tt></i>}) |
| 68 |
</p> |
| 69 |
<span id="Compound-Type-Specifier-Arguments_003a_003a-24"></span><h4 class="subsubheading">Compound Type Specifier Arguments::</h4> |
| 70 |
|
| 71 |
<p><i>size</i>—a non-negative <i>fixnum</i>, |
| 72 |
or the <i>symbol</i> <b>*</b>. |
| 73 |
</p> |
| 74 |
<span id="Compound-Type-Specifier-Description_003a_003a-24"></span><h4 class="subsubheading">Compound Type Specifier Description::</h4> |
| 75 |
|
| 76 |
<p>This denotes the union of all <i>types</i> |
| 77 |
<tt>(array <i>c</i> (<i>size</i>))</tt> |
| 78 |
for all <i>subtypes</i> <i>c</i> of <b>character</b>; |
| 79 |
that is, the set of <i>strings</i> of size <i>size</i>. |
| 80 |
</p> |
| 81 |
<span id="See-Also_003a_003a-375"></span><h4 class="subsubheading">See Also::</h4> |
| 82 |
|
| 83 |
<p><a href="String-Concepts.html">String Concepts</a>, |
| 84 |
<a href="Double_002dQuote.html">Double-Quote</a>, |
| 85 |
<a href="Printing-Strings.html">Printing Strings</a> |
| 86 |
</p> |
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
</body> |
| 91 |
</html> |