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.

both-case-p

both-case-p

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

SYNTAX

(both-case-p <char> )
        <char>          -       a character expression

DESCRIPTION

The BOTH-CASE-P predicate checks if the <char> expression is an alphabetic character. If <char> is an alphabetic (either an upper or lower case) character a T is returned, otherwise a NIL is returned. Upper case characters are 'A' (ASCII decimal value 65) through 'Z' (ASCII decimal value 90). Lower case characters are 'a' (ASCII decimal value 97) through 'z' (ASCII decimal value 122).

EXAMPLES

(both-case-p #\A)                       ; returns T
(both-case-p #\a)                       ; returns T
(both-case-p #\1)                       ; returns NIL
(both-case-p #\[)                       ; returns NIL


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