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, iswideogram, isnumber, iswnumber,
  13 isphonogram, iswphonogram, isspecial, iswspecial, iswalnum, iswascii,
  14 iswblank, iswcntrl, iswdigit, iswgraph, iswlower, iswprint, iswpunct,
  15 iswspace, iswupper, iswxdigit, iswhexnumber, iswalpha_l, iswideogram_l,
  16 iswnumber_l, iswphonogram_l, iswspecial_l, iswalnum_l, iswascii_l,
  17 iswblank_l, iswcntrl_l, iswdigit_l, iswgraph_l, iswlower_l, iswprint_l,
  18 iswpunct_l, iswspace_l, iswupper_l, iswhexnumber_l \- wide-character
  19 code classification functions
  20 
  21 .SH SYNOPSIS
  22 .LP
  23 .nf
  24 #include <wchar.h>
  25 #include <wctype.h>
  26 
  27 \fBint\fR \fBiswalpha\fR(\fBwint_t\fR \fIwc\fR);
  28 .fi
  29 
  30 .LP
  31 .nf
  32 \fBint\fR \fBisenglish\fR(\fBwint_t\fR \fIwc\fR);
  33 .fi
  34 
  35 .LP
  36 .nf
  37 \fBint\fR \fBisideogram\fR(\fBwint_t\fR \fIwc\fR);
  38 .fi
  39 
  40 .LP
  41 .nf
  42 \fBint\fR \fBisnumber\fR(\fBwint_t\fR \fIwc\fR);
  43 .fi
  44 
  45 .LP
  46 .nf
  47 \fBint\fR \fBisphonogram\fR(\fBwint_t\fR \fIwc\fR);
  48 .fi
  49 
  50 .LP
  51 .nf
  52 \fBint\fR \fBisspecial\fR(\fBwint_t\fR \fIwc\fR);
  53 .fi
  54 
  55 .LP
  56 .nf
  57 \fBint\fR \fBiswalnum\fR(\fBwint_t\fR \fIwc\fR);
  58 .fi
  59 
  60 .LP
  61 .nf
  62 \fBint\fR \fBiswascii\fR(\fBwint_t\fR \fIwc\fR);
  63 .fi
  64 
  65 .LP
  66 .nf
  67 \fBint\fR \fBiswblank\fR(\fBwint_t\fR \fIwc\fR);
  68 .fi
  69 
  70 .LP
  71 .nf
  72 \fBint\fR \fBiswcntrl\fR(\fBwint_t\fR \fIwc\fR);
  73 .fi
  74 
  75 .LP
  76 .nf
  77 \fBint\fR \fBiswdigit\fR(\fBwint_t\fR \fIwc\fR);
  78 .fi
  79 
  80 .LP
  81 .nf
  82 \fBint\fR \fBiswgraph\fR(\fBwint_t\fR \fIwc\fR);
  83 .fi
  84 
  85 .LP
  86 .nf
  87 \fBint\fR \fBiswlower\fR(\fBwint_t\fR \fIwc\fR);
  88 .fi
  89 
  90 .LP
  91 .nf
  92 \fBint\fR \fBiswprint\fR(\fBwint_t\fR \fIwc\fR);
  93 .fi
  94 
  95 .LP
  96 .nf
  97 \fBint\fR \fBiswpunct\fR(\fBwint_t\fR \fIwc\fR);
  98 .fi
  99 
 100 .LP
 101 .nf
 102 \fBint\fR \fBiswspace\fR(\fBwint_t\fR \fIwc\fR);
 103 .fi
 104 
 105 .LP
 106 .nf
 107 \fBint\fR \fBiswupper\fR(\fBwint_t\fR \fIwc\fR);
 108 .fi
 109 
 110 .LP
 111 .nf
 112 \fBint\fR \fBiswxdigit\fR(\fBwint_t\fR \fIwc\fR);
 113 .fi
 114 
 115 .LP
 116 .nf
 117 \fBint\fR \fBiswideogram\fR(\fBwint_t\fR \fIwc\fR);
 118 .fi
 119 
 120 .LP
 121 .nf
 122 \fBint\fR \fBiswnumber\fR(\fBwint_t\fR \fIwc\fR);
 123 .fi
 124 
 125 .LP
 126 .nf
 127 \fBint\fR \fBiswphonogram\fR(\fBwint_t\fR \fIwc\fR);
 128 .fi
 129 
 130 .LP
 131 .nf
 132 \fBint\fR \fBiswspecial\fR(\fBwint_t\fR \fIwc\fR);
 133 .fi
 134 
 135 XXX
 136 
 137 .LP
 138 .nf
 139 \fBint\fR \fBiswalpha\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 140 .fi
 141 
 142 .LP
 143 .nf
 144 \fBint\fR \fBiswideogram\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 145 .fi
 146 
 147 .LP
 148 .nf
 149 \fBint\fR \fBiswnumber\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 150 .fi
 151 
 152 .LP
 153 .nf
 154 \fBint\fR \fBiswphonogram\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 155 .fi
 156 
 157 .LP
 158 .nf
 159 \fBint\fR \fBiswspecial\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 160 .fi
 161 
 162 .LP
 163 .nf
 164 \fBint\fR \fBiswalnum\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 165 .fi
 166 
 167 .LP
 168 .nf
 169 \fBint\fR \fBiswascii\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 170 .fi
 171 
 172 .LP
 173 .nf
 174 \fBint\fR \fBiswblank\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 175 .fi
 176 
 177 .LP
 178 .nf
 179 \fBint\fR \fBiswcntrl\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 180 .fi
 181 
 182 .LP
 183 .nf
 184 \fBint\fR \fBiswdigit\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 185 .fi
 186 
 187 .LP
 188 .nf
 189 \fBint\fR \fBiswgraph\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 190 .fi
 191 
 192 .LP
 193 .nf
 194 \fBint\fR \fBiswlower\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 195 .fi
 196 
 197 .LP
 198 .nf
 199 \fBint\fR \fBiswprint\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 200 .fi
 201 
 202 .LP
 203 .nf
 204 \fBint\fR \fBiswpunct\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 205 .fi
 206 
 207 .LP
 208 .nf
 209 \fBint\fR \fBiswspace\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 210 .fi
 211 
 212 .LP
 213 .nf
 214 \fBint\fR \fBiswupper\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 215 .fi
 216 
 217 .LP
 218 .nf
 219 \fBint\fR \fBiswxdigit\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 220 .fi
 221 
 222 #include <xlocale.h>
 223 
 224 .LP
 225 .nf
 226 \fBint\fR \fBiswhexnumber\fR(\fBwint_t\fR \fIwc\fR);
 227 .fi
 228 
 229 .LP
 230 .nf
 231 \fBint\fR \fBiswhexnumber\fR(\fBwint_t\fR \fIwc\fR, \fBlocale_t\fR \fIloc\fR);
 232 .fi
 233 
 234 .SH DESCRIPTION
 235 .sp
 236 .LP
 237 These functions test whether \fIwc\fR is a wide-character code representing a
 238 character of a particular class defined in the \fBLC_CTYPE\fR category of the
 239 current locale as determined by \fBsetlocale\fR(3C) and
 240 \fBuselocale\fR(3C).
 241 .sp
 242 .LP
 243 The functions \fBiswalpha_l()\fR, \fBiswideogram_l()\fR, \fBiswnumber_l()\fR,
 244 \fBiswphonogram_l()\fR, \fBiswspecial_l()\fR, \fBiswalnum_l()\fR,
 245 \fBiswascii_l()\fR, \fBiswblank_l()\fR, \fBiswcntrl_l()\fR, \fBiswdigit_l()\fR,
 246 \fBiswgraph_l()\fR, \fBiswlower_l()\fR, \fBiswprint_l()\fR, \fBiswpunct_l()\fR,
 247 \fBiswspace_l()\fR, \fBiswupper_l()\fR, all behave identically to their
 248 counterparts without the '\fB_l\fR' suffix, but instead of operating on the
 249 current locale, they operate on the locale specified by \fIloc\fR.
 250 .sp
 251 .LP
 252 The functions, \fBiswideogram()\fR, \fBiswnumber()\fR, \fBiswphonogram()\fR,
 253 \fBiswspecial()\fR, and \fBiswhexnumber()\fR, are respectively identical to
 254 \fBisideogram()\fR, \fBisnumber()\fR, \fBisphonogram()\fR, \fBisspecial()\fR,
 255 \fBiswxdigit()\fR respectively.  They are provided for compatability purposes.
 256 .sp
 257 .LP
 258 In all cases, \fIwc\fR is a \fBwint_t\fR, the value of which must be a
 259 wide-character code corresponding to a valid character in the current locale or
 260 must equal the value of the macro \fBWEOF\fR. If the argument has any other
 261 values, the behavior is undefined.
 262 .sp
 263 .ne 2
 264 .na
 265 \fB\fBiswalpha(\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 "alpha" in the program's current locale.
 270 .RE
 271 
 272 .sp
 273 .ne 2
 274 .na
 275 \fB\fBisenglish(\fR\fIwc\fR\fB)\fR\fR
 276 .ad
 277 .RS 19n
 278 Tests whether \fIwc\fR is a wide-character code representing an English
 279 language character, excluding \fBASCII\fR characters.
 280 .RE
 281 
 282 .sp
 283 .ne 2
 284 .na
 285 \fB\fBisideogram(\fR\fIwc\fR\fB)\fR\fR
 286 .ad
 287 .RS 19n
 288 Tests whether \fIwc\fR is a wide-character code representing an ideographic
 289 language character, excluding \fBASCII\fR characters.
 290 .RE
 291 
 292 .sp
 293 .ne 2
 294 .na
 295 \fB\fBisnumber(\fR\fIwc\fR\fB)\fR\fR
 296 .ad
 297 .RS 19n
 298 Tests whether \fIwc\fR is a wide-character code representing digit [0\(mi9],
 299 excluding \fBASCII\fR characters.
 300 .RE
 301 
 302 .sp
 303 .ne 2
 304 .na
 305 \fB\fBisphonogram(\fR\fIwc\fR\fB)\fR\fR
 306 .ad
 307 .RS 19n
 308 Tests whether \fIwc\fR is a wide-character code representing a phonetic
 309 language character, excluding \fBASCII\fR characters.
 310 .RE
 311 
 312 .sp
 313 .ne 2
 314 .na
 315 \fB\fBisspecial(\fR\fIwc\fR\fB)\fR\fR
 316 .ad
 317 .RS 19n
 318 Tests whether \fIwc\fR is a wide-character code representing a special language
 319 character, excluding \fBASCII\fR characters.
 320 .RE
 321 
 322 .sp
 323 .ne 2
 324 .na
 325 \fB\fBiswalnum(\fR\fIwc\fR\fB)\fR\fR
 326 .ad
 327 .RS 19n
 328 Tests whether \fIwc\fR is a wide-character code representing a character of
 329 class "alpha" or "digit" in the program's current locale.
 330 .RE
 331 
 332 .sp
 333 .ne 2
 334 .na
 335 \fB\fBiswascii(\fR\fIwc\fR\fB)\fR\fR
 336 .ad
 337 .RS 19n
 338 Tests whether \fIwc\fR is a wide-character code representing an \fBASCII\fR
 339 character.
 340 .RE
 341 
 342 .sp
 343 .ne 2
 344 .na
 345 \fB\fBiswblank(\fR\fIwc\fR\fB)\fR\fR
 346 .ad
 347 .RS 19n
 348 Tests whether \fIwc\fR is a wide-character code representing a character of
 349 class "blank" in the program's current locale. This function is not available
 350 to applications conforming to standards prior to SUSv3. See \fBstandards\fR(5).
 351 .RE
 352 
 353 .sp
 354 .ne 2
 355 .na
 356 \fB\fBiswlower(\fR\fIwc\fR\fB)\fR\fR
 357 .ad
 358 .RS 19n
 359 Tests whether \fIwc\fR is a wide-character code representing a character of
 360 class "lower" in the program's current locale.
 361 .RE
 362 
 363 .sp
 364 .ne 2
 365 .na
 366 \fB\fBiswcntrl(\fR\fIwc\fR\fB)\fR\fR
 367 .ad
 368 .RS 19n
 369 Tests whether \fIwc\fR is a wide-character code representing a character of
 370 class "cntrl" in the program's current locale.
 371 .RE
 372 
 373 .sp
 374 .ne 2
 375 .na
 376 \fB\fBiswdigit(\fR\fIwc\fR\fB)\fR\fR
 377 .ad
 378 .RS 19n
 379 Tests whether \fIwc\fR is a wide-character code representing a character of
 380 class "digit" in the program's current locale.
 381 .RE
 382 
 383 .sp
 384 .ne 2
 385 .na
 386 \fB\fBiswgraph(\fR\fIwc\fR\fB)\fR\fR
 387 .ad
 388 .RS 19n
 389 Tests whether \fIwc\fR is a wide-character code representing a character of
 390 class "graph" in the program's current locale.
 391 .RE
 392 
 393 .sp
 394 .ne 2
 395 .na
 396 \fB\fBiswprint(\fR\fIwc\fR\fB)\fR\fR
 397 .ad
 398 .RS 19n
 399 Tests whether \fIwc\fR is a wide-character code representing a character of
 400 class "print" in the program's current locale.
 401 .RE
 402 
 403 .sp
 404 .ne 2
 405 .na
 406 \fB\fBiswpunct(\fR\fIwc\fR\fB)\fR\fR
 407 .ad
 408 .RS 19n
 409 Tests whether \fIwc\fR is a wide-character code representing a character of
 410 class "punct" in the program's current locale.
 411 .RE
 412 
 413 .sp
 414 .ne 2
 415 .na
 416 \fB\fBiswspace(\fR\fIwc\fR\fB)\fR\fR
 417 .ad
 418 .RS 19n
 419 Tests whether \fIwc\fR is a wide-character code representing a character of
 420 class "space" in the program's current locale.
 421 .RE
 422 
 423 .sp
 424 .ne 2
 425 .na
 426 \fB\fBiswupper(\fR\fIwc\fR\fB)\fR\fR
 427 .ad
 428 .RS 19n
 429 Tests whether \fIwc\fR is a wide-character code representing a character of
 430 class "upper" in the program's current locale.
 431 .RE
 432 
 433 .sp
 434 .ne 2
 435 .na
 436 \fB\fBiswxdigit(\fR\fIwc\fR\fB)\fR\fR
 437 .ad
 438 .RS 19n
 439 Tests whether \fIwc\fR is a wide-character code representing a character of
 440 class "xdigit" in the program's current locale.
 441 .RE
 442 
 443 .SH ATTRIBUTES
 444 .sp
 445 .LP
 446 See \fBattributes\fR(5) for descriptions of the following attributes:
 447 .sp
 448 
 449 .sp
 450 .TS
 451 box;
 452 l | l
 453 l | l .
 454 ATTRIBUTE TYPE  ATTRIBUTE VALUE
 455 _
 456 CSI     Enabled
 457 _
 458 Interface Stability     See  below.
 459 _
 460 MT-Level        MT-Safe with exceptions
 461 .TE
 462 
 463 .sp
 464 .LP
 465 The \fBiswalpha()\fR, \fBiswalnum()\fR, \fBiswblank()\fR, \fBiswcntrl()\fR,
 466 \fBiswdigit()\fR, \fBiswgraph()\fR, \fBiswlower()\fR, \fBiswprint()\fR,
 467 \fBiswpunct()\fR, \fBiswspace()\fR, \fBiswupper()\fR, and \fBiswxdigit()\fR
 468 functions are Standard.
 469 .sp
 470 .LP
 471 The \fBiswalpha_l()\fR, \fBiswalnum_l()\fR, \fBiswblank_l()\fR, \fBiswcntrl_l()\fR,
 472 \fBiswdigit_l()\fR, \fBiswgraph_l()\fR, \fBiswlower_l()\fR, \fBiswprint_l()\fR,
 473 \fBiswpunct_l()\fR, \fBiswspace_l()\fR, and \fBiswupper_l()\fR
 474 functions are Standard.
 475 .SH SEE ALSO
 476 .sp
 477 .LP
 478 \fBlocaledef\fR(1), \fBsetlocale\fR(3C), \fBstdio\fR(3C), \fBuselocale\fR(3C),
 479 \fBascii\fR(5), \fBattributes\fR(5), \fBstandards\fR(5)