| 1 | <html><head><title>XLISP char-greaterp</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-greaterp</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-greaterp</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 decreasing |
| 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-greaterp</nobr>' function tests if all the character |
| 54 | arguments are monotonically decreasing. |
| 55 | <nobr><a href="t.htm"> T </a> is</nobr> returned if the arguments |
| 56 | are of monotonically decreasing <a href="../misc/ascii-table.htm">ASCII</a> |
| 57 | value, <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 greater than |
| 59 | 'char2'. This test is case insensitive, the character '#\a' is considered to |
| 60 | be the same <a href="../misc/ascii-table.htm">ASCII</a> value as the |
| 61 | <nobr>character '#\A'.</nobr></p> |
| 62 | |
| 63 | <h2>Examples</h2> |
| 64 | |
| 65 | <pre class="example"> |
| 66 | (char-greaterp #\a #\b) => NIL |
| 67 | (char-greaterp #\b #\a) => T |
| 68 | (char-greaterp #\c #\b #\a) => T |
| 69 | (char-greaterp #\a #\a) => NIL |
| 70 | (char-greaterp #\c #\a #\b) => NIL |
| 71 | (char-greaterp #\A #\a) => NIL |
| 72 | (char-greaterp #\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> |