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, iswxdigit_l, iswhexnumber_l \-
20 wide-character 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);
188 \fBint\fR \fBiswxdigit_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
192 \fBint\fR \fBiswhexnumber_l\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
197 These functions test whether \fIwc\fR is a wide-character code representing a
198 character of a particular class defined in the \fBLC_CTYPE\fR category of the
199 current locale or the locale specified by \fIloc\fR.
201 The functions \fBiswalpha_l()\fR, \fBiswideogram_l()\fR, \fBiswnumber_l()\fR,
202 \fBiswphonogram_l()\fR, \fBiswspecial_l()\fR, \fBiswalnum_l()\fR,
203 \fBiswascii_l()\fR, \fBiswblank_l()\fR, \fBiswcntrl_l()\fR, \fBiswdigit_l()\fR,
204 \fBiswgraph_l()\fR, \fBiswlower_l()\fR, \fBiswprint_l()\fR, \fBiswpunct_l()\fR,
205 \fBiswspace_l()\fR, \fBiswupper_l()\fR, all behave identically to their
206 counterparts without the '\fB_l\fR' suffix, but instead of operating on the
207 current locale, they operate on the locale specified by \fIloc\fR.
209 The functions, \fBiswideogram()\fR, \fBiswnumber()\fR, \fBiswphonogram()\fR,
210 \fBiswspecial()\fR, and \fBiswhexnumber()\fR, are respectively identical to
211 \fBisideogram()\fR, \fBisnumber()\fR, \fBisphonogram()\fR, \fBisspecial()\fR,
212 \fBiswxdigit()\fR respectively. They are provided for compatibility purposes.
214 In all cases, \fIwc\fR is a \fBwint_t\fR, the value of which must be a
215 wide-character code corresponding to a valid character in the current locale or
216 must equal the value of the macro \fBWEOF\fR. If the argument has any other
217 values, the behavior is undefined.
221 \fB\fBiswalpha(\fR\fIwc\fR\fB)\fR\fR
224 Tests whether \fIwc\fR is a wide-character code representing a character of
225 class "alpha" in the program's current locale.
231 \fB\fBisenglish(\fR\fIwc\fR\fB)\fR\fR
234 Tests whether \fIwc\fR is a wide-character code representing an English
235 language character, excluding \fBASCII\fR characters.
241 \fB\fBisideogram(\fR\fIwc\fR\fB)\fR\fR
244 Tests whether \fIwc\fR is a wide-character code representing an ideographic
245 language character, excluding \fBASCII\fR characters.
251 \fB\fBisnumber(\fR\fIwc\fR\fB)\fR\fR
254 Tests whether \fIwc\fR is a wide-character code representing digit [0\(mi9],
255 excluding \fBASCII\fR characters.
261 \fB\fBisphonogram(\fR\fIwc\fR\fB)\fR\fR
264 Tests whether \fIwc\fR is a wide-character code representing a phonetic
265 language character, excluding \fBASCII\fR characters.
271 \fB\fBisspecial(\fR\fIwc\fR\fB)\fR\fR
274 Tests whether \fIwc\fR is a wide-character code representing a special language
275 character, excluding \fBASCII\fR characters.
281 \fB\fBiswalnum(\fR\fIwc\fR\fB)\fR\fR
284 Tests whether \fIwc\fR is a wide-character code representing a character of
285 class "alpha" or "digit" in the program's current locale.
291 \fB\fBiswascii(\fR\fIwc\fR\fB)\fR\fR
294 Tests whether \fIwc\fR is a wide-character code representing an \fBASCII\fR
301 \fB\fBiswblank(\fR\fIwc\fR\fB)\fR\fR
304 Tests whether \fIwc\fR is a wide-character code representing a character of
305 class "blank" in the program's current locale. This function is not available
306 to applications conforming to standards prior to SUSv3. See \fBstandards\fR(5).
312 \fB\fBiswlower(\fR\fIwc\fR\fB)\fR\fR
315 Tests whether \fIwc\fR is a wide-character code representing a character of
316 class "lower" in the program's current locale.
322 \fB\fBiswcntrl(\fR\fIwc\fR\fB)\fR\fR
325 Tests whether \fIwc\fR is a wide-character code representing a character of
326 class "cntrl" in the program's current locale.
332 \fB\fBiswdigit(\fR\fIwc\fR\fB)\fR\fR
335 Tests whether \fIwc\fR is a wide-character code representing a character of
336 class "digit" in the program's current locale.
342 \fB\fBiswgraph(\fR\fIwc\fR\fB)\fR\fR
345 Tests whether \fIwc\fR is a wide-character code representing a character of
346 class "graph" in the program's current locale.
352 \fB\fBiswprint(\fR\fIwc\fR\fB)\fR\fR
355 Tests whether \fIwc\fR is a wide-character code representing a character of
356 class "print" in the program's current locale.
362 \fB\fBiswpunct(\fR\fIwc\fR\fB)\fR\fR
365 Tests whether \fIwc\fR is a wide-character code representing a character of
366 class "punct" in the program's current locale.
372 \fB\fBiswspace(\fR\fIwc\fR\fB)\fR\fR
375 Tests whether \fIwc\fR is a wide-character code representing a character of
376 class "space" in the program's current locale.
382 \fB\fBiswupper(\fR\fIwc\fR\fB)\fR\fR
385 Tests whether \fIwc\fR is a wide-character code representing a character of
386 class "upper" in the program's current locale.
392 \fB\fBiswxdigit(\fR\fIwc\fR\fB)\fR\fR
395 Tests whether \fIwc\fR is a wide-character code representing a character of
396 class "xdigit" in the program's current locale.
401 See \fBattributes\fR(5) for descriptions of the following attributes:
406 ATTRIBUTE TYPE ATTRIBUTE VALUE
410 Interface Stability See below.
416 The \fBiswalpha()\fR, \fBiswalnum()\fR, \fBiswblank()\fR, \fBiswcntrl()\fR,
417 \fBiswdigit()\fR, \fBiswgraph()\fR, \fBiswlower()\fR, \fBiswprint()\fR,
418 \fBiswpunct()\fR, \fBiswspace()\fR, \fBiswupper()\fR, and \fBiswxdigit()\fR
419 functions are Standard.
421 The \fBiswalpha_l()\fR, \fBiswalnum_l()\fR, \fBiswblank_l()\fR, \fBiswcntrl_l()\fR,
422 \fBiswdigit_l()\fR, \fBiswgraph_l()\fR, \fBiswlower_l()\fR, \fBiswprint_l()\fR,
423 \fBiswpunct_l()\fR, \fBiswspace_l()\fR, and \fBiswupper_l()\fR
424 functions are Standard.
427 \fBlocaledef\fR(1), \fBnewlocale\fR(3C),
428 \fBsetlocale\fR(3C), \fBstdio\fR(3C), \fBuselocale\fR(3C),
429 \fBascii\fR(5), \fBattributes\fR(5), \fBstandards\fR(5)