Goto main content

iswlower

Checks for a lower-case character.

ISWLOWER

NAME

iswlower - Checks for a lower-case character.

SYNOPSIS

iswlower("…");

DESCRIPTION

This function is used to determine whether a character is a lowercase letter. The argument of the function can be a single character or a string. In the latter case, each character has to be a lower letter for the function to be true. The variable can also be defined as 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 lowercase character 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 diffrent selection of characters as "lowercase characters", but they will never consider characters returning true for iscntrl, isdigit, ispunct or isspace.

The iswlower program operates on wide characters, while islower operates on single byte character. If your locale is multibyte, iswlower is the prefered solution.

EXAMPLES

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

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

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

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.