The ifx_gl_iswdigit() function
The ifx_gl_iswdigit() function determines whether a wide character contains a decimal digit.
Syntax
#include <ifxgls.h>
...
int ifx_gl_iswdigit(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_iswdigit() function tests whether wc is in the digit character class according to the rules of the current locale. The digit character class contains only the 10 ASCII digit characters (ASCII 0x030 to 0x039). Any multibyte versions or alternative representations of these digits that the locale might define (for example, Hindi or Kanji digits) are not in this class. Instead, they are in the alpha class.
Characters in this class are also in the xdigit, graph, and print classes. No characters in the upper, lower, alpha, blank, space, punct, or cntrl classes are in this class.
To determine whether a wide character contains a hexadecimal digit, you can use the ifx_gl_iswxdigit() function. Use the ifx_gl_iswalnum() function to test whether a wide character is an alphabetic character or a digit.
Locale information
The LC_CTYPE category of the current locale affects the behavior of this function because it defines the digit 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
- IFX_GL_EILSEQ
- The *wc value is not a valid wide character.