'\" te .\" Copyright (c) 1992, X/Open Company Limited. All Rights Reserved. Portions Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved. .\" 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 http://www.opengroup.org/bookstore/. .\" 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. This notice shall appear on any product containing this material. .TH iswalpha 3C "19 Apr 2004" "SunOS 5.11" "Standard C Library Functions" .SH NAME iswalpha, isenglish, isideogram, isnumber, isphonogram, isspecial, iswalnum, iswascii, iswblank, iswcntrl, iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit \- wide-character code classification functions .SH SYNOPSIS .LP .nf #include #include \fBint\fR \fBiswalpha\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBisenglish\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBisideogram\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBisnumber\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBisphonogram\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBisspecial\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBiswalnum\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBiswascii\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBiswblank\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBiswcntrl\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBiswdigit\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBiswgraph\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBiswlower\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBiswprint\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBiswpunct\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBiswspace\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBiswupper\fR(\fBwint_t\fR \fIwc\fR); .fi .LP .nf \fBint\fR \fBiswxdigit\fR(\fBwint_t\fR \fIwc\fR); .fi .SH DESCRIPTION .sp .LP These functions test whether \fIwc\fR is a wide-character code representing a character of a particular class defined in the \fBLC_CTYPE\fR category of the current locale. .sp .LP In all cases, \fIwc\fR is a \fBwint_t\fR, the value of which must be a wide-character code corresponding to a valid character in the current locale or must equal the value of the macro \fBWEOF\fR. If the argument has any other values, the behavior is undefined. .sp .ne 2 .mk .na \fB\fBiswalpha(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing a character of class "alpha" in the program's current locale. .RE .sp .ne 2 .mk .na \fB\fBisenglish(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing an English language character, excluding \fBASCII\fR characters. .RE .sp .ne 2 .mk .na \fB\fBisideogram(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing an ideographic language character, excluding \fBASCII\fR characters. .RE .sp .ne 2 .mk .na \fB\fBisnumber(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing digit [0\(mi9], excluding \fBASCII\fR characters. .RE .sp .ne 2 .mk .na \fB\fBisphonogram(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing a phonetic language character, excluding \fBASCII\fR characters. .RE .sp .ne 2 .mk .na \fB\fBisspecial(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing a special language character, excluding \fBASCII\fR characters. .RE .sp .ne 2 .mk .na \fB\fBiswalnum(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing a character of class "alpha" or "digit" in the program's current locale. .RE .sp .ne 2 .mk .na \fB\fBiswascii(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing an \fBASCII\fR character. .RE .sp .ne 2 .mk .na \fB\fBiswblank(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing a character of class "blank" in the program's current locale. This function is not available to applications conforming to standards prior to SUSv3. See \fBstandards\fR(5). .RE .sp .ne 2 .mk .na \fB\fBiswlower(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing a character of class "lower" in the program's current locale. .RE .sp .ne 2 .mk .na \fB\fBiswcntrl(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing a character of class "cntrl" in the program's current locale. .RE .sp .ne 2 .mk .na \fB\fBiswdigit(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing a character of class "digit" in the program's current locale. .RE .sp .ne 2 .mk .na \fB\fBiswgraph(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing a character of class "graph" in the program's current locale. .RE .sp .ne 2 .mk .na \fB\fBiswprint(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing a character of class "print" in the program's current locale. .RE .sp .ne 2 .mk .na \fB\fBiswpunct(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing a character of class "punct" in the program's current locale. .RE .sp .ne 2 .mk .na \fB\fBiswspace(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing a character of class "space" in the program's current locale. .RE .sp .ne 2 .mk .na \fB\fBiswupper(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing a character of class "upper" in the program's current locale. .RE .sp .ne 2 .mk .na \fB\fBiswxdigit(\fR\fIwc\fR\fB)\fR\fR .ad .RS 19n .rt Tests whether \fIwc\fR is a wide-character code representing a character of class "xdigit" in the program's current locale. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; lw(2.75i) |lw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ CSIEnabled _ Interface StabilitySee below. _ MT-LevelMT-Safe with exceptions .TE .sp .LP The \fBiswalpha()\fR, \fBiswalnum()\fR, \fBiswblank()\fR, \fBiswcntrl()\fR, \fBiswdigit()\fR, \fBiswgraph()\fR, \fBiswlower()\fR, \fBiswprint()\fR, \fBiswpunct()\fR, \fBiswspace()\fR, \fBiswupper()\fR, and \fBiswxdigit()\fR functions are Standard. .SH SEE ALSO .sp .LP \fBlocaledef\fR(1), \fBsetlocale\fR(3C), \fBstdio\fR(3C), \fBascii\fR(5), \fBattributes\fR(5), \fBstandards\fR(5)