Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

char-not-greaterp

char-not-greaterp

type: predicate function (subr) 
location: built-in
source file: xlstr.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

(char-not-greaterp <char1> <charN> ... )
        <char1>         -       a character expression
        <charN>         -       character expression(s) to compare

DESCRIPTION

The CHAR-NOT-GREATERP function takes one or more character arguments. It checks to see if all the character arguments are monotonically non-decreasing. T is returned if the arguments are of non-decreasing ASCII value. In the case of two arguments, this has the effect of testing if <char1> is less than or equal to <char2>. This test is case insensitive - the character #\a is considered to be the same ASCII value as #\A.

EXAMPLES

(char-not-greaterp #\a #\b)             ; returns T
(char-not-greaterp #\b #\a)             ; returns NIL
(char-not-greaterp #\a #\b #\c)         ; returns T
(char-not-greaterp #\a #\a)             ; returns T 
(char-not-greaterp #\a #\b #\b)         ; returns T
(char-not-greaterp #\A #\a)             ; returns T
(char-not-greaterp #\a #\A)             ; returns T


Go to the first, previous, next, last section, table of contents.