| 1 |
<html><head><title>XLISP char-lessp</title> |
| 2 |
|
| 3 |
<link rel="stylesheet" type="text/css" href="reference.css"> |
| 4 |
|
| 5 |
</head> |
| 6 |
|
| 7 |
<body> |
| 8 |
|
| 9 |
<a href="../start.htm">Nyquist / XLISP 2.0</a> - |
| 10 |
<a href="../manual/contents.htm">Contents</a> | |
| 11 |
<a href="../tutorials/tutorials.htm">Tutorials</a> | |
| 12 |
<a href="../examples/examples.htm">Examples</a> | |
| 13 |
<a href="reference-index.htm">Reference</a> |
| 14 |
|
| 15 |
<hr> |
| 16 |
|
| 17 |
<h1>char-lessp</h1> |
| 18 |
|
| 19 |
<hr> |
| 20 |
|
| 21 |
<p><table cellpadding="0" cellspacing="0" style="margin-left:10px"><tbody> |
| 22 |
<tr valign="top"> |
| 23 |
<td><nobr>Type:</nobr></td> |
| 24 |
<td><nobr> - </nobr></td> |
| 25 |
<td width="100%"><nobr>predicate function (subr)</nobr></td> |
| 26 |
</tr> |
| 27 |
<tr valign="top"> |
| 28 |
<td><nobr>Source:</nobr></td> |
| 29 |
<td><nobr> - </nobr></td> |
| 30 |
<td width="100%"><nobr>xlstr.c</nobr></td> |
| 31 |
</tr> |
| 32 |
</tbody></table></p> |
| 33 |
|
| 34 |
<h2>Syntax</h2> |
| 35 |
|
| 36 |
<p><div class="box"> |
| 37 |
|
| 38 |
<dl> |
| 39 |
<dt>(<b>char-lessp</b> <i>char1 charN</i> ... )</dt> |
| 40 |
<dd><i>char1</i> - a character expression<br> |
| 41 |
<i>charN</i> - character expression[s] to compare<br> |
| 42 |
returns - <a href="t.htm"> T </a> |
| 43 |
if the characters are of monotonically increasing |
| 44 |
<a href="../misc/ascii-table.htm">ASCII</a> value, |
| 45 |
<a href="nil.htm">NIL</a> otherwise<br> |
| 46 |
<b>Note:</b> case is not significant with this function</dd> |
| 47 |
</dl> |
| 48 |
|
| 49 |
</div></p> |
| 50 |
|
| 51 |
<h2>Description</h2> |
| 52 |
|
| 53 |
<p>The '<nobr>char-lessp</nobr>' function tests if all the character |
| 54 |
arguments are monotonically increasing. |
| 55 |
<nobr><a href="t.htm"> T </a> is</nobr> returned if the arguments |
| 56 |
are of increasing <a href="../misc/ascii-table.htm">ASCII</a> value, |
| 57 |
<a href="nil.htm">NIL</a> otherwise. <nobr>In the</nobr> case of two |
| 58 |
arguments, this has the effect of testing if 'char1' is less than 'char2'. |
| 59 |
This test is case insensitive, the <nobr>character '#\a'</nobr> is |
| 60 |
considered to be the same <a href="../misc/ascii-table.htm">ASCII</a> value |
| 61 |
as the <nobr>character '#\A'.</nobr></p> |
| 62 |
|
| 63 |
<h2>Examples</h2> |
| 64 |
|
| 65 |
<pre class="example"> |
| 66 |
(char-lessp #\a #\b) => T |
| 67 |
(char-lessp #\b #\a) => NIL |
| 68 |
(char-lessp #\a #\b #\c) => T |
| 69 |
(char-lessp #\a #\a) => NIL |
| 70 |
(char-lessp #\a #\b #\b) => NIL |
| 71 |
(char-lessp #\A #\a) => NIL |
| 72 |
(char-lessp #\a #\A) => NIL |
| 73 |
</pre> |
| 74 |
|
| 75 |
<p>See also:</p> |
| 76 |
|
| 77 |
<ul> |
| 78 |
<li><nobr>Contents → <a href="../manual/contents.htm#character-functions">Character Functions</a></nobr></li> |
| 79 |
</ul> |
| 80 |
|
| 81 |
<p><nobr> <a href="#top">Back to Top</nobr></a></p> |
| 82 |
|
| 83 |
<hr> |
| 84 |
|
| 85 |
<a href="../start.htm">Nyquist / XLISP 2.0</a> - |
| 86 |
<a href="../manual/contents.htm">Contents</a> | |
| 87 |
<a href="../tutorials/tutorials.htm">Tutorials</a> | |
| 88 |
<a href="../examples/examples.htm">Examples</a> | |
| 89 |
<a href="reference-index.htm">Reference</a> |
| 90 |
|
| 91 |
</body></html> |