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

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10
11

NAME

13       wctype.h — wide-character classification and mapping utilities
14

SYNOPSIS

16       #include <wctype.h>
17

DESCRIPTION

19       Some of the functionality described on this reference page extends  the
20       ISO C  standard. Applications shall define the appropriate feature test
21       macro (see the System Interfaces volume of POSIX.1‐2008,  Section  2.2,
22       The  Compilation Environment) to enable the visibility of these symbols
23       in this header.
24
25       The <wctype.h> header shall define the following types:
26
27       wint_t      As described in <wchar.h>.
28
29       wctrans_t   A scalar type that can hold values which represent  locale-
30                   specific character mappings.
31
32       wctype_t    As described in <wchar.h>.
33
34       The  <wctype.h>  header  shall define the locale_t type as described in
35       <locale.h>.
36
37       The <wctype.h> header shall define the following macro:
38
39       WEOF        As described in <wchar.h>.
40
41       For all functions described in this header that accept an  argument  of
42       type  wint_t,  the  value  is  representable as a wchar_t or equals the
43       value of WEOF. If this argument has any other value,  the  behavior  is
44       undefined.
45
46       The behavior of these functions shall be affected by the LC_CTYPE cate‐
47       gory of the current locale.
48
49       Inclusion of the <wctype.h> header may make visible  all  symbols  from
50       the  headers  <ctype.h>, <stdarg.h>, <stddef.h>, <stdio.h>, <stdlib.h>,
51       <string.h>, <time.h>, and <wchar.h>.
52
53       The following shall be declared as functions and may also be defined as
54       macros.  Function prototypes shall be provided for use with ISO C stan‐
55       dard compilers.
56
57           int       iswalnum(wint_t);
58           int       iswalnum_l(wint_t, locale_t);
59           int       iswalpha(wint_t);
60           int       iswalpha_l(wint_t, locale_t);
61           int       iswblank(wint_t);
62           int       iswblank_l(wint_t, locale_t);
63           int       iswcntrl(wint_t);
64           int       iswcntrl_l(wint_t, locale_t);
65           int       iswctype(wint_t, wctype_t);
66           int       iswctype_l(wint_t, wctype_t, locale_t);
67           int       iswdigit(wint_t);
68           int       iswdigit_l(wint_t, locale_t);
69           int       iswgraph(wint_t);
70           int       iswgraph_l(wint_t, locale_t);
71           int       iswlower(wint_t);
72           int       iswlower_l(wint_t, locale_t);
73           int       iswprint(wint_t);
74           int       iswprint_l(wint_t, locale_t);
75           int       iswpunct(wint_t);
76           int       iswpunct_l(wint_t, locale_t);
77           int       iswspace(wint_t);
78           int       iswspace_l(wint_t, locale_t);
79           int       iswupper(wint_t);
80           int       iswupper_l(wint_t, locale_t);
81           int       iswxdigit(wint_t);
82           int       iswxdigit_l(wint_t, locale_t);
83           wint_t    towctrans(wint_t, wctrans_t);
84           wint_t    towctrans_l(wint_t, wctrans_t, locale_t);
85           wint_t    towlower(wint_t);
86           wint_t    towlower_l(wint_t, locale_t);
87           wint_t    towupper(wint_t);
88           wint_t    towupper_l(wint_t, locale_t);
89           wctrans_t wctrans(const char *);
90           wctrans_t wctrans_l(const char *, locale_t);
91           wctype_t  wctype(const char *);
92           wctype_t  wctype_l(const char *, locale_t);
93
94       The following sections are informative.
95

APPLICATION USAGE

97       None.
98

RATIONALE

100       None.
101

FUTURE DIRECTIONS

103       None.
104

SEE ALSO

106       <ctype.h>, <locale.h>, <stdarg.h>, <stddef.h>,  <stdio.h>,  <stdlib.h>,
107       <string.h>, <time.h>, <wchar.h>
108
109       The System Interfaces volume of POSIX.1‐2008, Section 2.2, The Compila‐
110       tion Environment, iswalnum(), iswalpha(), iswblank(), iswcntrl(), iswc‐
111       type(),  iswdigit(),  iswgraph(),  iswlower(),  iswprint(), iswpunct(),
112       iswspace(),   iswupper(),   iswxdigit(),   setlocale(),    towctrans(),
113       towlower(), towupper(), wctrans(), wctype()
114
116       Portions  of  this text are reprinted and reproduced in electronic form
117       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
118       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
119       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
120       cal  and  Electronics  Engineers,  Inc  and  The  Open Group.  (This is
121       POSIX.1-2008 with the 2013 Technical Corrigendum  1  applied.)  In  the
122       event of any discrepancy between this version and the original IEEE and
123       The Open Group Standard, the original IEEE and The Open Group  Standard
124       is  the  referee document. The original Standard can be obtained online
125       at http://www.unix.org/online.html .
126
127       Any typographical or formatting errors that appear  in  this  page  are
128       most likely to have been introduced during the conversion of the source
129       files to man page format. To report such errors,  see  https://www.ker
130       nel.org/doc/man-pages/reporting_bugs.html .
131
132
133
134IEEE/The Open Group                  2013                         wctype.h(0P)
Impressum