XLISP upper-case-p

Nyquist / XLISP 2.0 - Contents | Tutorials | Examples | Reference

# upper-case-p

Type: | - | predicate function (subr)
Source: | - | xlstr.c

## Syntax

(upper-case-p char)
  char - a character expression
  returns - T if the character is upper case, NIL otherwise

## Description

The 'upper-case-p' predicate function checks if the 'char' expression is an upper case character. If 'char' is upper case a T is returned, otherwise a NIL is returned. Upper case characters are 'A' [ASCII decimal value 65] through 'Z' [ASCII decimal value 90].

## Examples

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

See the upper-case-p predicate function in the XLISP 2.0 manual.

Back to Top

Nyquist / XLISP 2.0 - Contents | Tutorials | Examples | Reference