1WCTYPE(3)                  Linux Programmer's Manual                 WCTYPE(3)
2
3
4

NAME

6       wctype - wide-character classification
7

SYNOPSIS

9       #include <wctype.h>
10
11       wctype_t wctype(const char *name);
12

DESCRIPTION

14       The  wctype_t  type represents a property which a wide character may or
15       may not have.  In other words, it represents a class  of  wide  charac‐
16       ters.   This type's nature is implementation-dependent, but the special
17       value (wctype_t) 0 denotes an invalid property.  Nonzero wctype_t  val‐
18       ues  can be passed to the iswctype(3) function to actually test whether
19       a given wide character has the property.
20
21       The wctype() function returns a property, given by its name.   The  set
22       of  valid names depends on the LC_CTYPE category of the current locale,
23       but the following names are valid in all locales.
24         "alnum" - realizes the isalnum(3) classification function
25         "alpha" - realizes the isalpha(3) classification function
26         "blank" - realizes the isblank(3) classification function
27         "cntrl" - realizes the iscntrl(3) classification function
28         "digit" - realizes the isdigit(3) classification function
29         "graph" - realizes the isgraph(3) classification function
30         "lower" - realizes the islower(3) classification function
31         "print" - realizes the isprint(3) classification function
32         "punct" - realizes the ispunct(3) classification function
33         "space" - realizes the isspace(3) classification function
34         "upper" - realizes the isupper(3) classification function
35         "xdigit" - realizes the isxdigit(3) classification function
36

RETURN VALUE

38       The wctype() function returns a property  descriptor  if  the  name  is
39       valid.  Otherwise it returns (wctype_t) 0.
40

CONFORMING TO

42       C99.
43

NOTES

45       The  behavior  of wctype() depends on the LC_CTYPE category of the cur‐
46       rent locale.
47

SEE ALSO

49       iswctype(3)
50

COLOPHON

52       This page is part of release 3.53 of the Linux  man-pages  project.   A
53       description  of  the project, and information about reporting bugs, can
54       be found at http://www.kernel.org/doc/man-pages/.
55
56
57
58GNU                               1999-07-25                         WCTYPE(3)
Impressum