The ifx_gl_iswalnum() function

The ifx_gl_iswalnum() function determines whether a wide character contains an alphabetic or digit character.

Syntax

#include <ifxgls.h>
...
int ifx_gl_iswalnum(wc)
       gl_wchar_t *wc;
wc
A pointer to the wide character whose character classification you want to determine.
Valid in client application Valid in DataBlade® UDR
Yes Yes

Usage

The ifx_gl_iswalnum() function tests whether wc is in the alnum character class (either the alpha or digit class) according to the rules of the current locale. The alpha class contains all characters from the upper and lower classes. The digit class contains only the 10 ASCII digit characters: '0' to '9' (ASCII 0x030 to 0x039).

To determine whether a wide character is defined only in the alpha class, use the ifx_gl_iswalpha() function. To determine whether a wide character is defined only in the digit class, use the ifx_gl_iswdigit() function.

Locale information

The LC_CTYPE category of the current locale affects the behavior of this function because it defines the alnum character class.

Return values

>0
The wc character is in the digit character class.
0
The function was not successful, and the error number is set to indicate the cause. See the Errors section.

Errors

This function does not return a unique value to indicate an error. If an error occurred, the function returns 0 and sets the ifx_gl_lc_errno() error number to the following value.
IFX_GL_EILSEQ
The *wc value is not a valid wide character.