1<wctype.h>(0P)             POSIX Programmer's Manual            <wctype.h>(0P)
2
3
4

NAME

6       wctype.h - wide-character classification and mapping utilities
7

SYNOPSIS

9       #include <wctype.h>
10

DESCRIPTION

12       Some  of the functionality described on this reference page extends the
13       ISO C standard. Applications shall define the appropriate feature  test
14       macro  (see  the System Interfaces volume of IEEE Std 1003.1-2001, Sec‐
15       tion 2.2, The Compilation Environment)  to  enable  the  visibility  of
16       these symbols in this header.
17
18       The <wctype.h> header shall define the following types:
19
20       wint_t As described in <wchar.h> .
21
22       wctrans_t
23              A  scalar  type that can hold values which represent locale-spe‐
24              cific character mappings.
25
26       wctype_t
27              As described in <wchar.h> .
28
29
30       The following shall be declared as functions and may also be defined as
31       macros. Function prototypes shall be provided.
32
33
34              int       iswalnum(wint_t);
35              int       iswalpha(wint_t);
36              int       iswblank(wint_t);
37              int       iswcntrl(wint_t);
38              int       iswdigit(wint_t);
39              int       iswgraph(wint_t);
40              int       iswlower(wint_t);
41              int       iswprint(wint_t);
42              int       iswpunct(wint_t);
43              int       iswspace(wint_t);
44              int       iswupper(wint_t);
45              int       iswxdigit(wint_t);
46              int       iswctype(wint_t, wctype_t);
47              wint_t    towctrans(wint_t, wctrans_t);
48              wint_t    towlower(wint_t);
49              wint_t    towupper(wint_t);
50              wctrans_t wctrans(const char *);
51              wctype_t  wctype(const char *);
52
53       The <wctype.h> header shall define the following macro name:
54
55       WEOF   Constant  expression  of type wint_t that is returned by several
56              MSE functions to indicate end-of-file.
57
58
59       For all functions described in this header that accept an  argument  of
60       type  wint_t,  the  value  is  representable as a wchar_t or equals the
61       value of WEOF. If this argument has any other value,  the  behavior  is
62       undefined.
63
64       The behavior of these functions shall be affected by the LC_CTYPE cate‐
65       gory of the current locale.
66
67       Inclusion of the <wctype.h> header may make visible  all  symbols  from
68       the  headers  <ctype.h>, <stdarg.h>, <stddef.h>, <stdio.h>, <stdlib.h>,
69       <string.h>, <time.h>, and <wchar.h>.
70
71       The following sections are informative.
72

APPLICATION USAGE

74       None.
75

RATIONALE

77       None.
78

FUTURE DIRECTIONS

80       None.
81

SEE ALSO

83       <ctype.h>, <locale.h>, <stdarg.h>, <stddef.h>,  <stdio.h>,  <stdlib.h>,
84       <string.h>,  <time.h>,  <wchar.h>,  the  System  Interfaces  volume  of
85       IEEE Std 1003.1-2001, iswalnum(), iswalpha(),  iswblank(),  iswcntrl(),
86       iswctype(), iswdigit(), iswgraph(), iswlower(), iswprint(), iswpunct(),
87       iswspace(),   iswupper(),   iswxdigit(),   setlocale(),    towctrans(),
88       towlower(), towupper(), wctrans(), wctype()
89
91       Portions  of  this text are reprinted and reproduced in electronic form
92       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
93       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
94       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
95       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
96       event of any discrepancy between this version and the original IEEE and
97       The  Open Group Standard, the original IEEE and The Open Group Standard
98       is the referee document. The original Standard can be  obtained  online
99       at http://www.opengroup.org/unix/online.html .
100
101
102
103IEEE/The Open Group                  2003                       <wctype.h>(0P)
Impressum