std-isupper, std-islower


Synopsis

(std-isupper <ch | int>)

(std-islower <ch | int>)

Description

STD-ISUPPER returns T if the given argument is a string of one chracter (length 1) or a positive integer number and the character representation is a uppercase alphabetic character, independent of the used language or codepage. [A-Z,À-ß] in Latin-1

STD-ISLOWER is for testing lowercase characters. [a-z,à-ÿ] in Latin-1.

Corresponding Common Lisp names: upper-case-p, lower-case-p

Note

Both functions are dependent on the current stdlib codepage, which defaults to "iso8859-1" or Latin-1. It might be dynamically redefined when the codepage is changed. This will only affect characters above (CHR 127).

Arguments

ch: a one character string or a integer number

Return Value

T or nil.

Side Effects

None.

Module

(std-require 'STDSTR)

Defined in STDSTR, it might be redefined in STDLOCAL