function

iswdigit . string . sncode

VERSIONlatest Checks for a digit (0 through 9).

ISWDIGIT

NAME

iswdigit - Checks for a digit (0 through 9).

SYNOPSIS

iswdigit("…");

DESCRIPTION

This function is used to determine if the argument is a digit, that is an arabic number contained between 0 and 9. The argument can be a single character or a string. In the latter case, each character has to be a digit for the function to be true.

Iswdigit operates on wide characters while isdigit operates on single byte characters. If your locale is multibyte, iswdigit would be the prefered solution.

EXAMPLES

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

AUTHOR

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