function

iswupper . string . sncode

VERSIONlatest Checks for a upper-case character.

ISWUPPER

NAME

iswupper - Checks for a upper-case character.

SYNOPSIS

iswupper("…");

DESCRIPTION

This function is used to determine whether a character is an upper letter. 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, an 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 iswupper(a) then
        "ok";
else
        "nok";
endif

AUTHOR

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