function

iswalpha . string . sncode

VERSIONlatest Checks for an alphabetic character.

ISWALPHA

NAME

iswalpha - Checks for an alphabetic character.

SYNOPSIS

iswalpha("…");

DESCRIPTION

This function is used to determine if the argument is an alphabetic character. Alphabetic characters are latin letters. The argument of the function can be a single character or a string. In the latter case, each character has to be alphabetic for the function to be true.

In the standart "C" locale, it is equivalent to (iwsupper(c) || iswlower(c)). In other locales, there may be additionnal characters that would be considered alphabetic. Those would be letters that are neither uppercase nor lowercase characters.

Iswalpha operates on wide characters while isalpha operates on single byte characters. If your locale is multibyte, iswalpha would be the prefered solution.

EXAMPLES

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

AUTHOR

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