1wctype(3C)               Standard C Library Functions               wctype(3C)
2
3
4

NAME

6       wctype - define character class
7

SYNOPSIS

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

DESCRIPTION

15       The  wctype()  function  is  defined for valid character class names as
16       defined in the current locale. The charclass is a string identifying  a
17       generic  character class for which codeset-specific type information is
18       required. The following  character  class  names  are  defined  in  all
19       locales:
20
21
22
23
24       alnum                alpha                 blank
25       cntrl                digit                 graph
26       lower                print                 punct
27       space                upper                 xdigit
28
29
30
31       Additional  character class names defined in the locale definition file
32       (category LC_CTYPE) can also be specified.
33
34
35       The function returns a value of type wctype_t, which can be used as the
36       second  argument  to  subsequent calls of iswctype(3C). wctype() deter‐
37       mines values of wctype_t according to the rules of the coded  character
38       set defined by character type information in the program's locale (cat‐
39       egory LC_CTYPE). The values returned by wctype() are valid until a call
40       to setlocale(3C) that modifies the category LC_CTYPE.
41

RETURN VALUES

43       The  wctype()  function  returns 0 if the given character class name is
44       not valid for the current  locale  (category  LC_CTYPE);  otherwise  it
45       returns  an  object of type wctype_t that can be used in calls to iswc‐
46       type().
47

ATTRIBUTES

49       See attributes(5) for descriptions of the following attributes:
50
51
52
53
54       ┌─────────────────────────────┬─────────────────────────────┐
55ATTRIBUTE TYPE               ATTRIBUTE VALUE              
56       ├─────────────────────────────┼─────────────────────────────┤
57       │CSI                          │Enabled                      │
58       ├─────────────────────────────┼─────────────────────────────┤
59       │Interface Stability          │Standard                     │
60       ├─────────────────────────────┼─────────────────────────────┤
61       │MT-Level                     │MT-Safe with exceptions      │
62       └─────────────────────────────┴─────────────────────────────┘
63

SEE ALSO

65       iswctype(3C), setlocale(3C), attributes(5), standards(5)
66
67
68
69SunOS 5.11                        14 Aug 2002                       wctype(3C)
Impressum