1wctype.h(0P) POSIX Programmer's Manual wctype.h(0P)
2
3
4
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
12 wctype.h — wide-character classification and mapping utilities
13
15 #include <wctype.h>
16
18 Some of the functionality described on this reference page extends the
19 ISO C standard. Applications shall define the appropriate feature test
20 macro (see the System Interfaces volume of POSIX.1‐2017, Section 2.2,
21 The Compilation Environment) to enable the visibility of these symbols
22 in this header.
23
24 The <wctype.h> header shall define the following types:
25
26 wint_t As described in <wchar.h>.
27
28 wctrans_t A scalar type that can hold values which represent locale-
29 specific character mappings.
30
31 wctype_t As described in <wchar.h>.
32
33 The <wctype.h> header shall define the locale_t type as described in
34 <locale.h>.
35
36 The <wctype.h> header shall define the following macro:
37
38 WEOF As described in <wchar.h>.
39
40 For all functions described in this header that accept an argument of
41 type wint_t, the value is representable as a wchar_t or equals the
42 value of WEOF. If this argument has any other value, the behavior is
43 undefined.
44
45 The behavior of these functions shall be affected by the LC_CTYPE cate‐
46 gory of the current locale.
47
48 Inclusion of the <wctype.h> header may make visible all symbols from
49 the headers <ctype.h>, <stdarg.h>, <stddef.h>, <stdio.h>, <stdlib.h>,
50 <string.h>, <time.h>, and <wchar.h>.
51
52 The following shall be declared as functions and may also be defined as
53 macros. Function prototypes shall be provided for use with ISO C stan‐
54 dard compilers.
55
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
97 None.
98
100 None.
101
103 None.
104
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‐2017, 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-2017, Standard for Information Technology -- Por‐
118 table Operating System Interface (POSIX), The Open Group Base Specifi‐
119 cations Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of
120 Electrical and Electronics Engineers, Inc and The Open Group. In the
121 event of any discrepancy between this version and the original IEEE and
122 The Open Group Standard, the original IEEE and The Open Group Standard
123 is the referee document. The original Standard can be obtained online
124 at http://www.opengroup.org/unix/online.html .
125
126 Any typographical or formatting errors that appear in this page are
127 most likely to have been introduced during the conversion of the source
128 files to man page format. To report such errors, see https://www.ker‐
129 nel.org/doc/man-pages/reporting_bugs.html .
130
131
132
133IEEE/The Open Group 2017 wctype.h(0P)