Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <wchar.h>
    int iswctype( wint_t wc, wctype_t desc );

Description:
    The iswctype function determines whether the wide character wc has the
    property described by desc.  Valid values of desc are defined by the use
    of the  wctype function.

    The eleven expressions listed below have a truth-value equivalent to a
    call to the wide character testing function shown.

    Expression     Equivalent

iswctype(wc, wctype("alnum"))
    iswalnum(wc)

iswctype(wc, wctype("alpha"))
    iswalpha(wc)

iswctype(wc, wctype("cntrl"))
    iswcntrl(wc)

iswctype(wc, wctype("digit"))
    iswdigit(wc)

iswctype(wc, wctype("graph"))
    iswgraph(wc)

iswctype(wc, wctype("lower"))
    iswlower(wc)

iswctype(wc, wctype("print"))
    iswprint(wc)

iswctype(wc, wctype("punct"))
    iswpunct(wc)

iswctype(wc, wctype("space"))
    iswspace(wc)

iswctype(wc, wctype("upper"))
    iswupper(wc)

iswctype(wc, wctype("xdigit"))
    iswxdigit(wc)


Returns:
    The iswctype function returns non-zero (true) if and only if the value
    of the wide character wc has the property described by desc.

Example:
    #include <stdio.h>
    #include <wchar.h>

    char *types[11] = {
        "alnum",
        "alpha",
        "cntrl",
        "digit",
        "graph",
        "lower",
        "print",
        "punct",
        "space",
        "upper",
        "xdigit"
    };

    void main()
      {
        int     i;
        wint_t  wc = 'A';

        for( i = 0; i < 11; i++ )
          if( iswctype( wc, wctype( types[i] ) ) )
            printf( "%s\n", types[ i ] );
      }

    produces the following:

    alnum
    alpha
    graph
    print
    upper
    xdigit

Classification:
    ANSI

Systems:
    All

See Also:
    isalnum, isalpha, iscntrl, isdigit, isgraph, isleadbyte, islower,
    isprint, ispunct, isspace, isupper, isxdigit, tolower, toupper

See Also: isleadbyte

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson