XLISP >
XLISP 2.0 -
Contents -
Reference -
Previous |
Next
both-case-p
Type: |
- |
predicate function (subr) |
Source: |
- |
xlstr.c |
Syntax
- (both-case-p char)
- char - a character expression
returns - T if the character
is alphabetic, NIL otherwise
Description
The 'both-case-p' predicate function 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
See the
both-case-p
predicate function in the XLISP 2.0 manual.
Back to Top
XLISP >
XLISP 2.0 -
Contents -
Reference -
Previous |
Next