1 '\" te 2 .\" Copyright (c) 1992, X/Open Company Limited. All Rights Reserved. Portions Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved. 3 .\" 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 4 .\" http://www.opengroup.org/bookstore/. 5 .\" 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. 6 .\" This notice shall appear on any product containing this material. 7 .\" 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. 8 .\" 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. 9 .\" 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] 10 .TH ISWALPHA 3C "Apr 19, 2004" 11 .SH NAME 12 iswalpha, isenglish, isideogram, isnumber, isphonogram, isspecial, iswalnum, 13 iswascii, iswblank, iswcntrl, iswdigit, iswgraph, iswlower, iswprint, iswpunct, 14 iswspace, iswupper, iswxdigit \- wide-character code classification functions 15 .SH SYNOPSIS 16 .LP 17 .nf 18 #include <wchar.h> 19 #include <wctype.h> 20 21 \fBint\fR \fBiswalpha\fR(\fBwint_t\fR \fIwc\fR); 22 .fi 23 24 .LP 25 .nf 26 \fBint\fR \fBisenglish\fR(\fBwint_t\fR \fIwc\fR); 27 .fi 28 29 .LP 30 .nf 31 \fBint\fR \fBisideogram\fR(\fBwint_t\fR \fIwc\fR); 32 .fi 33 34 .LP 35 .nf 36 \fBint\fR \fBisnumber\fR(\fBwint_t\fR \fIwc\fR); 37 .fi 38 39 .LP 40 .nf 41 \fBint\fR \fBisphonogram\fR(\fBwint_t\fR \fIwc\fR); 42 .fi 43 44 .LP 45 .nf 46 \fBint\fR \fBisspecial\fR(\fBwint_t\fR \fIwc\fR); 47 .fi 48 49 .LP 50 .nf 51 \fBint\fR \fBiswalnum\fR(\fBwint_t\fR \fIwc\fR); 52 .fi 53 54 .LP 55 .nf 56 \fBint\fR \fBiswascii\fR(\fBwint_t\fR \fIwc\fR); 57 .fi 58 59 .LP 60 .nf 61 \fBint\fR \fBiswblank\fR(\fBwint_t\fR \fIwc\fR); 62 .fi 63 64 .LP 65 .nf 66 \fBint\fR \fBiswcntrl\fR(\fBwint_t\fR \fIwc\fR); 67 .fi 68 69 .LP 70 .nf 71 \fBint\fR \fBiswdigit\fR(\fBwint_t\fR \fIwc\fR); 72 .fi 73 74 .LP 75 .nf 76 \fBint\fR \fBiswgraph\fR(\fBwint_t\fR \fIwc\fR); 77 .fi 78 79 .LP 80 .nf 81 \fBint\fR \fBiswlower\fR(\fBwint_t\fR \fIwc\fR); 82 .fi 83 84 .LP 85 .nf 86 \fBint\fR \fBiswprint\fR(\fBwint_t\fR \fIwc\fR); 87 .fi 88 89 .LP 90 .nf 91 \fBint\fR \fBiswpunct\fR(\fBwint_t\fR \fIwc\fR); 92 .fi 93 94 .LP 95 .nf 96 \fBint\fR \fBiswspace\fR(\fBwint_t\fR \fIwc\fR); 97 .fi 98 99 .LP 100 .nf 101 \fBint\fR \fBiswupper\fR(\fBwint_t\fR \fIwc\fR); 102 .fi 103 104 .LP 105 .nf 106 \fBint\fR \fBiswxdigit\fR(\fBwint_t\fR \fIwc\fR); 107 .fi 108 109 .SH DESCRIPTION 110 .sp 111 .LP 112 These functions test whether \fIwc\fR is a wide-character code representing a 113 character of a particular class defined in the \fBLC_CTYPE\fR category of the 114 current locale. 115 .sp 116 .LP 117 In all cases, \fIwc\fR is a \fBwint_t\fR, the value of which must be a 118 wide-character code corresponding to a valid character in the current locale or 119 must equal the value of the macro \fBWEOF\fR. If the argument has any other 120 values, the behavior is undefined. 121 .sp 122 .ne 2 123 .na 124 \fB\fBiswalpha(\fR\fIwc\fR\fB)\fR\fR 125 .ad 126 .RS 19n 127 Tests whether \fIwc\fR is a wide-character code representing a character of 128 class "alpha" in the program's current locale. 129 .RE 130 131 .sp 132 .ne 2 133 .na 134 \fB\fBisenglish(\fR\fIwc\fR\fB)\fR\fR 135 .ad 136 .RS 19n 137 Tests whether \fIwc\fR is a wide-character code representing an English 138 language character, excluding \fBASCII\fR characters. 139 .RE 140 141 .sp 142 .ne 2 143 .na 144 \fB\fBisideogram(\fR\fIwc\fR\fB)\fR\fR 145 .ad 146 .RS 19n 147 Tests whether \fIwc\fR is a wide-character code representing an ideographic 148 language character, excluding \fBASCII\fR characters. 149 .RE 150 151 .sp 152 .ne 2 153 .na 154 \fB\fBisnumber(\fR\fIwc\fR\fB)\fR\fR 155 .ad 156 .RS 19n 157 Tests whether \fIwc\fR is a wide-character code representing digit [0\(mi9], 158 excluding \fBASCII\fR characters. 159 .RE 160 161 .sp 162 .ne 2 163 .na 164 \fB\fBisphonogram(\fR\fIwc\fR\fB)\fR\fR 165 .ad 166 .RS 19n 167 Tests whether \fIwc\fR is a wide-character code representing a phonetic 168 language character, excluding \fBASCII\fR characters. 169 .RE 170 171 .sp 172 .ne 2 173 .na 174 \fB\fBisspecial(\fR\fIwc\fR\fB)\fR\fR 175 .ad 176 .RS 19n 177 Tests whether \fIwc\fR is a wide-character code representing a special language 178 character, excluding \fBASCII\fR characters. 179 .RE 180 181 .sp 182 .ne 2 183 .na 184 \fB\fBiswalnum(\fR\fIwc\fR\fB)\fR\fR 185 .ad 186 .RS 19n 187 Tests whether \fIwc\fR is a wide-character code representing a character of 188 class "alpha" or "digit" in the program's current locale. 189 .RE 190 191 .sp 192 .ne 2 193 .na 194 \fB\fBiswascii(\fR\fIwc\fR\fB)\fR\fR 195 .ad 196 .RS 19n 197 Tests whether \fIwc\fR is a wide-character code representing an \fBASCII\fR 198 character. 199 .RE 200 201 .sp 202 .ne 2 203 .na 204 \fB\fBiswblank(\fR\fIwc\fR\fB)\fR\fR 205 .ad 206 .RS 19n 207 Tests whether \fIwc\fR is a wide-character code representing a character of 208 class "blank" in the program's current locale. This function is not available 209 to applications conforming to standards prior to SUSv3. See \fBstandards\fR(5). 210 .RE 211 212 .sp 213 .ne 2 214 .na 215 \fB\fBiswlower(\fR\fIwc\fR\fB)\fR\fR 216 .ad 217 .RS 19n 218 Tests whether \fIwc\fR is a wide-character code representing a character of 219 class "lower" in the program's current locale. 220 .RE 221 222 .sp 223 .ne 2 224 .na 225 \fB\fBiswcntrl(\fR\fIwc\fR\fB)\fR\fR 226 .ad 227 .RS 19n 228 Tests whether \fIwc\fR is a wide-character code representing a character of 229 class "cntrl" in the program's current locale. 230 .RE 231 232 .sp 233 .ne 2 234 .na 235 \fB\fBiswdigit(\fR\fIwc\fR\fB)\fR\fR 236 .ad 237 .RS 19n 238 Tests whether \fIwc\fR is a wide-character code representing a character of 239 class "digit" in the program's current locale. 240 .RE 241 242 .sp 243 .ne 2 244 .na 245 \fB\fBiswgraph(\fR\fIwc\fR\fB)\fR\fR 246 .ad 247 .RS 19n 248 Tests whether \fIwc\fR is a wide-character code representing a character of 249 class "graph" in the program's current locale. 250 .RE 251 252 .sp 253 .ne 2 254 .na 255 \fB\fBiswprint(\fR\fIwc\fR\fB)\fR\fR 256 .ad 257 .RS 19n 258 Tests whether \fIwc\fR is a wide-character code representing a character of 259 class "print" in the program's current locale. 260 .RE 261 262 .sp 263 .ne 2 264 .na 265 \fB\fBiswpunct(\fR\fIwc\fR\fB)\fR\fR 266 .ad 267 .RS 19n 268 Tests whether \fIwc\fR is a wide-character code representing a character of 269 class "punct" in the program's current locale. 270 .RE 271 272 .sp 273 .ne 2 274 .na 275 \fB\fBiswspace(\fR\fIwc\fR\fB)\fR\fR 276 .ad 277 .RS 19n 278 Tests whether \fIwc\fR is a wide-character code representing a character of 279 class "space" in the program's current locale. 280 .RE 281 282 .sp 283 .ne 2 284 .na 285 \fB\fBiswupper(\fR\fIwc\fR\fB)\fR\fR 286 .ad 287 .RS 19n 288 Tests whether \fIwc\fR is a wide-character code representing a character of 289 class "upper" in the program's current locale. 290 .RE 291 292 .sp 293 .ne 2 294 .na 295 \fB\fBiswxdigit(\fR\fIwc\fR\fB)\fR\fR 296 .ad 297 .RS 19n 298 Tests whether \fIwc\fR is a wide-character code representing a character of 299 class "xdigit" in the program's current locale. 300 .RE 301 302 .SH ATTRIBUTES 303 .sp 304 .LP 305 See \fBattributes\fR(5) for descriptions of the following attributes: 306 .sp 307 308 .sp 309 .TS 310 box; 311 l | l 312 l | l . 313 ATTRIBUTE TYPE ATTRIBUTE VALUE 314 _ 315 CSI Enabled 316 _ 317 Interface Stability See below. 318 _ 319 MT-Level MT-Safe with exceptions 320 .TE 321 322 .sp 323 .LP 324 The \fBiswalpha()\fR, \fBiswalnum()\fR, \fBiswblank()\fR, \fBiswcntrl()\fR, 325 \fBiswdigit()\fR, \fBiswgraph()\fR, \fBiswlower()\fR, \fBiswprint()\fR, 326 \fBiswpunct()\fR, \fBiswspace()\fR, \fBiswupper()\fR, and \fBiswxdigit()\fR 327 functions are Standard. 328 .SH SEE ALSO 329 .sp 330 .LP 331 \fBlocaledef\fR(1), \fBsetlocale\fR(3C), \fBstdio\fR(3C), \fBascii\fR(5), 332 \fBattributes\fR(5), \fBstandards\fR(5)