1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
<html>
<head><title>ACL2_Strings.html -- ACL2 Version 3.1</title></head>
<body text=#000000 bgcolor="#FFFFFF">
<h2>ACL2 Strings</h2>
<p>
Strings of ACL2 <a href="ACL2_Characters.html">characters</a> are written
as sequences of characters delimited by ``double quotation marks'' (").
To put a double quotation mark in a string (or, any other character such
as backslash or newline that seems to cause problems), escape it by preceding
it with a backslash (\).<p>
The function <code><a href="STRINGP.html">stringp</a></code> <a href="A_Tiny_Warning_Sign.html"><img src=twarning.gif></a> recognizes strings and <code><a href="CHAR.html">char</a></code>
<a href="A_Tiny_Warning_Sign.html"><img src=twarning.gif></a> will fetch the nth character of a string. There are many
other primitives for handling strings, such as <code><a href="STRING_lt_.html">string<</a></code> <a href="A_Tiny_Warning_Sign.html"><img src=twarning.gif></a> for
comparing two strings lexicographically. We suggest you
See <a href="PROGRAMMING.html">programming</a> <a href="A_Tiny_Warning_Sign.html"><img src=twarning.gif></a> where we list all of the primitive ACL2
functions. Alternatively, see any Common Lisp language
documentation.
<br><br><br><a href="acl2-doc.html"><img src="llogo.gif"></a> <a href="acl2-doc-index.html"><img src="index.gif"></a>
</body>
</html>
|