function

isupper . string . sncode

VERSIONlatest Checks for a upper-case character.

ISUPPER

NAME

isupper - Checks for a upper-case character.

SYNOPSIS

isupper("…");

DESCRIPTION

This function is used to determine whether a character is an upper letter or not. The argument of the function can be a single character or a string, each character of it has to be an upper letter for the function to be true. The variable can be a chain of characters defined before the program.

Notice that what is considered a letter may depend on the locale being used. In the default "C" locale, a upper letter is any of these: a b c d e f g h i j k l m n o p q r s t u v w x y z.

Other locales may consider a different selection of characters as "upper characters" but they will never consider characters returning true for ischtrl, isdigit, ispunct or isspace.

Iswupper operates on wide characters while isupper operates on single byte characters. If your locale is multibyte, iswupper is the best solution.

EXAMPLES

if isupper(a) then
        "ok";
else
        "nok";
endif

AUTHOR

Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>