2 .\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
3 .\" Copyright (c) 1992, X/Open Company Limited. All Rights Reserved. Portions Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.
4 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
5 .\" http://www.opengroup.org/bookstore/.
6 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
7 .\" This notice shall appear on any product containing this material.
8 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
9 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
10 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
11 .TH ISWALPHA 3C "April 9, 2016"
13 iswalpha, isenglish, isideogram, iswideogram, isnumber, iswnumber,
14 isphonogram, iswphonogram, isspecial, iswspecial, iswalnum, iswascii,
15 iswblank, iswcntrl, iswdigit, iswgraph, iswlower, iswprint, iswpunct,
16 iswspace, iswupper, iswxdigit, iswhexnumber, iswalpha_l, iswideogram_l,
17 iswnumber_l, iswphonogram_l, iswspecial_l, iswalnum_l, iswascii_l,
18 iswblank_l, iswcntrl_l, iswdigit_l, iswgraph_l, iswlower_l, iswprint_l,
19 iswpunct_l, iswspace_l, iswupper_l, iswhexnumber_l \- wide-character
20 code classification functions
28 \fBint\fR \fBiswalpha\fR(\fBwint_t\fR \fIwc\fR);
32 \fBint\fR \fBisenglish\fR(\fBwint_t\fR \fIwc\fR);
36 \fBint\fR \fBisideogram\fR(\fBwint_t\fR \fIwc\fR);
40 \fBint\fR \fBisnumber\fR(\fBwint_t\fR \fIwc\fR);
44 \fBint\fR \fBisphonogram\fR(\fBwint_t\fR \fIwc\fR);
48 \fBint\fR \fBisspecial\fR(\fBwint_t\fR \fIwc\fR);
52 \fBint\fR \fBiswalnum\fR(\fBwint_t\fR \fIwc\fR);
56 \fBint\fR \fBiswascii\fR(\fBwint_t\fR \fIwc\fR);
60 \fBint\fR \fBiswblank\fR(\fBwint_t\fR \fIwc\fR);
64 \fBint\fR \fBiswcntrl\fR(\fBwint_t\fR \fIwc\fR);
68 \fBint\fR \fBiswdigit\fR(\fBwint_t\fR \fIwc\fR);
72 \fBint\fR \fBiswgraph\fR(\fBwint_t\fR \fIwc\fR);
76 \fBint\fR \fBiswlower\fR(\fBwint_t\fR \fIwc\fR);
80 \fBint\fR \fBiswprint\fR(\fBwint_t\fR \fIwc\fR);
84 \fBint\fR \fBiswpunct\fR(\fBwint_t\fR \fIwc\fR);
88 \fBint\fR \fBiswspace\fR(\fBwint_t\fR \fIwc\fR);
92 \fBint\fR \fBiswupper\fR(\fBwint_t\fR \fIwc\fR);
96 \fBint\fR \fBiswxdigit\fR(\fBwint_t\fR \fIwc\fR);
100 \fBint\fR \fBiswhexnumber\fR(\fBwint_t\fR \fIwc\fR);
104 \fBint\fR \fBiswideogram\fR(\fBwint_t\fR \fIwc\fR);
108 \fBint\fR \fBiswnumber\fR(\fBwint_t\fR \fIwc\fR);
112 \fBint\fR \fBiswphonogram\fR(\fBwint_t\fR \fIwc\fR);
116 \fBint\fR \fBiswspecial\fR(\fBwint_t\fR \fIwc\fR);
120 \fBint\fR \fBiswalpha_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
124 \fBint\fR \fBiswideogram_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
128 \fBint\fR \fBiswnumber_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
132 \fBint\fR \fBiswphonogram_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
136 \fBint\fR \fBiswspecial_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
140 \fBint\fR \fBiswalnum_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
144 \fBint\fR \fBiswascii_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
148 \fBint\fR \fBiswblank_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
152 \fBint\fR \fBiswcntrl_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
156 \fBint\fR \fBiswdigit_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
160 \fBint\fR \fBiswgraph_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
164 \fBint\fR \fBiswlower_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
168 \fBint\fR \fBiswprint_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
172 \fBint\fR \fBiswpunct_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
176 \fBint\fR \fBiswspace_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
180 \fBint\fR \fBiswupper\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
184 \fBint\fR \fBiswxdigit\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
190 \fBint\fR \fBiswhexnumber\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
195 These functions test whether \fIwc\fR is a wide-character code representing a
196 character of a particular class defined in the \fBLC_CTYPE\fR category of the
197 current locale or the locale specified by \fIloc\fR.
199 The functions \fBiswalpha_l()\fR, \fBiswideogram_l()\fR, \fBiswnumber_l()\fR,
200 \fBiswphonogram_l()\fR, \fBiswspecial_l()\fR, \fBiswalnum_l()\fR,
201 \fBiswascii_l()\fR, \fBiswblank_l()\fR, \fBiswcntrl_l()\fR, \fBiswdigit_l()\fR,
202 \fBiswgraph_l()\fR, \fBiswlower_l()\fR, \fBiswprint_l()\fR, \fBiswpunct_l()\fR,
203 \fBiswspace_l()\fR, \fBiswupper_l()\fR, all behave identically to their
204 counterparts without the '\fB_l\fR' suffix, but instead of operating on the
205 current locale, they operate on the locale specified by \fIloc\fR.
207 The functions, \fBiswideogram()\fR, \fBiswnumber()\fR, \fBiswphonogram()\fR,
208 \fBiswspecial()\fR, and \fBiswhexnumber()\fR, are respectively identical to
209 \fBisideogram()\fR, \fBisnumber()\fR, \fBisphonogram()\fR, \fBisspecial()\fR,
210 \fBiswxdigit()\fR respectively. They are provided for compatibility purposes.
212 In all cases, \fIwc\fR is a \fBwint_t\fR, the value of which must be a
213 wide-character code corresponding to a valid character in the current locale or
214 must equal the value of the macro \fBWEOF\fR. If the argument has any other
215 values, the behavior is undefined.
219 \fB\fBiswalpha(\fR\fIwc\fR\fB)\fR\fR
222 Tests whether \fIwc\fR is a wide-character code representing a character of
223 class "alpha" in the program's current locale.
229 \fB\fBisenglish(\fR\fIwc\fR\fB)\fR\fR
232 Tests whether \fIwc\fR is a wide-character code representing an English
233 language character, excluding \fBASCII\fR characters.
239 \fB\fBisideogram(\fR\fIwc\fR\fB)\fR\fR
242 Tests whether \fIwc\fR is a wide-character code representing an ideographic
243 language character, excluding \fBASCII\fR characters.
249 \fB\fBisnumber(\fR\fIwc\fR\fB)\fR\fR
252 Tests whether \fIwc\fR is a wide-character code representing digit [0\(mi9],
253 excluding \fBASCII\fR characters.
259 \fB\fBisphonogram(\fR\fIwc\fR\fB)\fR\fR
262 Tests whether \fIwc\fR is a wide-character code representing a phonetic
263 language character, excluding \fBASCII\fR characters.
269 \fB\fBisspecial(\fR\fIwc\fR\fB)\fR\fR
272 Tests whether \fIwc\fR is a wide-character code representing a special language
273 character, excluding \fBASCII\fR characters.
279 \fB\fBiswalnum(\fR\fIwc\fR\fB)\fR\fR
282 Tests whether \fIwc\fR is a wide-character code representing a character of
283 class "alpha" or "digit" in the program's current locale.
289 \fB\fBiswascii(\fR\fIwc\fR\fB)\fR\fR
292 Tests whether \fIwc\fR is a wide-character code representing an \fBASCII\fR
299 \fB\fBiswblank(\fR\fIwc\fR\fB)\fR\fR
302 Tests whether \fIwc\fR is a wide-character code representing a character of
303 class "blank" in the program's current locale. This function is not available
304 to applications conforming to standards prior to SUSv3. See \fBstandards\fR(5).
310 \fB\fBiswlower(\fR\fIwc\fR\fB)\fR\fR
313 Tests whether \fIwc\fR is a wide-character code representing a character of
314 class "lower" in the program's current locale.
320 \fB\fBiswcntrl(\fR\fIwc\fR\fB)\fR\fR
323 Tests whether \fIwc\fR is a wide-character code representing a character of
324 class "cntrl" in the program's current locale.
330 \fB\fBiswdigit(\fR\fIwc\fR\fB)\fR\fR
333 Tests whether \fIwc\fR is a wide-character code representing a character of
334 class "digit" in the program's current locale.
340 \fB\fBiswgraph(\fR\fIwc\fR\fB)\fR\fR
343 Tests whether \fIwc\fR is a wide-character code representing a character of
344 class "graph" in the program's current locale.
350 \fB\fBiswprint(\fR\fIwc\fR\fB)\fR\fR
353 Tests whether \fIwc\fR is a wide-character code representing a character of
354 class "print" in the program's current locale.
360 \fB\fBiswpunct(\fR\fIwc\fR\fB)\fR\fR
363 Tests whether \fIwc\fR is a wide-character code representing a character of
364 class "punct" in the program's current locale.
370 \fB\fBiswspace(\fR\fIwc\fR\fB)\fR\fR
373 Tests whether \fIwc\fR is a wide-character code representing a character of
374 class "space" in the program's current locale.
380 \fB\fBiswupper(\fR\fIwc\fR\fB)\fR\fR
383 Tests whether \fIwc\fR is a wide-character code representing a character of
384 class "upper" in the program's current locale.
390 \fB\fBiswxdigit(\fR\fIwc\fR\fB)\fR\fR
393 Tests whether \fIwc\fR is a wide-character code representing a character of
394 class "xdigit" in the program's current locale.
399 See \fBattributes\fR(5) for descriptions of the following attributes:
404 ATTRIBUTE TYPE ATTRIBUTE VALUE
408 Interface Stability See below.
414 The \fBiswalpha()\fR, \fBiswalnum()\fR, \fBiswblank()\fR, \fBiswcntrl()\fR,
415 \fBiswdigit()\fR, \fBiswgraph()\fR, \fBiswlower()\fR, \fBiswprint()\fR,
416 \fBiswpunct()\fR, \fBiswspace()\fR, \fBiswupper()\fR, and \fBiswxdigit()\fR
417 functions are Standard.
419 The \fBiswalpha_l()\fR, \fBiswalnum_l()\fR, \fBiswblank_l()\fR, \fBiswcntrl_l()\fR,
420 \fBiswdigit_l()\fR, \fBiswgraph_l()\fR, \fBiswlower_l()\fR, \fBiswprint_l()\fR,
421 \fBiswpunct_l()\fR, \fBiswspace_l()\fR, and \fBiswupper_l()\fR
422 functions are Standard.
425 \fBlocaledef\fR(1), \fBnewlocale\fR(3C),
426 \fBsetlocale\fR(3C), \fBstdio\fR(3C), \fBuselocale\fR(3C),
427 \fBascii\fR(5), \fBattributes\fR(5), \fBstandards\fR(5)