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

NAME

6       iswalpha,  isenglish,  isideogram,  isnumber,  isphonogram,  isspecial,
7       iswalnum, iswascii, iswblank, iswcntrl, iswdigit,  iswgraph,  iswlower,
8       iswprint, iswpunct, iswspace, iswupper, iswxdigit - wide-character code
9       classification functions
10

SYNOPSIS

12       #include <wchar.h>
13       #include <wctype.h>
14
15       int iswalpha(wint_t wc);
16
17
18       int isenglish(wint_t wc);
19
20
21       int isideogram(wint_t wc);
22
23
24       int isnumber(wint_t wc);
25
26
27       int isphonogram(wint_t wc);
28
29
30       int isspecial(wint_t wc);
31
32
33       int iswalnum(wint_t wc);
34
35
36       int iswascii(wint_t wc);
37
38
39       int iswblank(wint_t wc);
40
41
42       int iswcntrl(wint_t wc);
43
44
45       int iswdigit(wint_t wc);
46
47
48       int iswgraph(wint_t wc);
49
50
51       int iswlower(wint_t wc);
52
53
54       int iswprint(wint_t wc);
55
56
57       int iswpunct(wint_t wc);
58
59
60       int iswspace(wint_t wc);
61
62
63       int iswupper(wint_t wc);
64
65
66       int iswxdigit(wint_t wc);
67
68

DESCRIPTION

70       These functions test whether wc is a wide-character code representing a
71       character of a particular class defined in the LC_CTYPE category of the
72       current locale.
73
74
75       In all cases, wc is a wint_t, the value of which must be a wide-charac‐
76       ter  code  corresponding  to a valid character in the current locale or
77       must equal the value of the macro WEOF. If the argument has  any  other
78       values, the behavior is undefined.
79
80       iswalpha(wc)       Tests whether wc is a wide-character code represent‐
81                          ing a character of class "alpha"  in  the  program's
82                          current locale.
83
84
85       isenglish(wc)      Tests whether wc is a wide-character code represent‐
86                          ing an English language character,  excluding  ASCII
87                          characters.
88
89
90       isideogram(wc)     Tests whether wc is a wide-character code represent‐
91                          ing an  ideographic  language  character,  excluding
92                          ASCII characters.
93
94
95       isnumber(wc)       Tests whether wc is a wide-character code represent‐
96                          ing digit [0−9], excluding ASCII characters.
97
98
99       isphonogram(wc)    Tests whether wc is a wide-character code represent‐
100                          ing  a  phonetic language character, excluding ASCII
101                          characters.
102
103
104       isspecial(wc)      Tests whether wc is a wide-character code represent‐
105                          ing  a  special  language character, excluding ASCII
106                          characters.
107
108
109       iswalnum(wc)       Tests whether wc is a wide-character code represent‐
110                          ing  a  character of class "alpha" or "digit" in the
111                          program's current locale.
112
113
114       iswascii(wc)       Tests whether wc is a wide-character code represent‐
115                          ing an ASCII character.
116
117
118       iswblank(wc)       Tests whether wc is a wide-character code represent‐
119                          ing a character of class "blank"  in  the  program's
120                          current  locale.  This  function is not available to
121                          applications conforming to standards prior to SUSv3.
122                          See standards(5).
123
124
125       iswlower(wc)       Tests whether wc is a wide-character code represent‐
126                          ing a character of class "lower"  in  the  program's
127                          current locale.
128
129
130       iswcntrl(wc)       Tests whether wc is a wide-character code represent‐
131                          ing a character of class "cntrl"  in  the  program's
132                          current locale.
133
134
135       iswdigit(wc)       Tests whether wc is a wide-character code represent‐
136                          ing a character of class "digit"  in  the  program's
137                          current locale.
138
139
140       iswgraph(wc)       Tests whether wc is a wide-character code represent‐
141                          ing a character of class "graph"  in  the  program's
142                          current locale.
143
144
145       iswprint(wc)       Tests whether wc is a wide-character code represent‐
146                          ing a character of class "print"  in  the  program's
147                          current locale.
148
149
150       iswpunct(wc)       Tests whether wc is a wide-character code represent‐
151                          ing a character of class "punct"  in  the  program's
152                          current locale.
153
154
155       iswspace(wc)       Tests whether wc is a wide-character code represent‐
156                          ing a character of class "space"  in  the  program's
157                          current locale.
158
159
160       iswupper(wc)       Tests whether wc is a wide-character code represent‐
161                          ing a character of class "upper"  in  the  program's
162                          current locale.
163
164
165       iswxdigit(wc)      Tests whether wc is a wide-character code represent‐
166                          ing a character of class "xdigit" in  the  program's
167                          current locale.
168
169

ATTRIBUTES

171       See attributes(5) for descriptions of the following attributes:
172
173
174
175
176       ┌─────────────────────────────┬─────────────────────────────┐
177       │ATTRIBUTE TYPE               │ATTRIBUTE VALUE              │
178       ├─────────────────────────────┼─────────────────────────────┤
179       │CSI                          │Enabled                      │
180       ├─────────────────────────────┼─────────────────────────────┤
181       │Interface Stability          │See  below.                  │
182       ├─────────────────────────────┼─────────────────────────────┤
183       │MT-Level                     │MT-Safe with exceptions      │
184       └─────────────────────────────┴─────────────────────────────┘
185
186
187       The  iswalpha(),  iswalnum(),  iswblank(), iswcntrl(), iswdigit(), isw‐
188       graph(), iswlower(), iswprint(),  iswpunct(),  iswspace(),  iswupper(),
189       and iswxdigit() functions are Standard.
190

SEE ALSO

192       localedef(1),  setlocale(3C), stdio(3C), ascii(5), attributes(5), stan‐
193       dards(5)
194
195
196
197SunOS 5.11                        19 Apr 2004                     iswalpha(3C)
Impressum