'\" te .\" Copyright (c) 1992, X/Open Company Limited All Rights Reserved Portions Copyright (c) 2002, 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 iswctype 3C "24 Jul 2002" "SunOS 5.11" "Standard C Library Functions" .SH NAME iswctype \- test character for specified class .SH SYNOPSIS .LP .nf #include \fBint\fR \fBiswctype\fR(\fBwint_t\fR \fIwc\fR, \fBwctype_t\fR \fIcharclass\fR); .fi .SH DESCRIPTION .sp .LP The \fBiswctype()\fR function determines whether the wide-character code \fIwc\fR has the character class \fIcharclass\fR, returning \fBTRUE\fR or \fBFALSE\fR. The \fBiswctype()\fR function is defined on \fBWEOF\fR and wide-character codes corresponding to the valid character encodings in the current locale. If the \fIwc\fR argument is not in the domain of the function, the result is undefined. If the value of \fIcharclass\fR is invalid (that is, not obtained by a call to \fBwctype\fR(3C) or \fIcharclass \fR is invalidated by a subsequent call to \fBsetlocale\fR(3C) that has affected category \fBLC_CTYPE\fR), the result is indeterminate. .SH RETURN VALUES .sp .LP The \fBiswctype()\fR function returns \fB0\fR for \fBFALSE\fR and non-zero for \fBTRUE\fR. .SH USAGE .sp .LP There are twelve strings that are reserved for the standard character classes: .sp .sp .TS tab(); lw(1.83i) |lw(1.83i) |lw(1.83i) lw(1.83i) |lw(1.83i) |lw(1.83i) . "alnum""alpha""blank" _ "cntrl""digit""graph" _ "lower""print""punct" _ "space""upper""xdigit" .TE .sp .LP In the table below, the functions in the left column are equivalent to the functions in the right column. .sp .sp .TS tab(); lw(2.75i) lw(2.75i) lw(2.75i) lw(2.75i) . \fBiswalnum(\fR\fIwc\fR\fB)\fRiswctype(\fIwc,\fR\fB wctype(\fR"alnum"\fB))\fR iswalpha(\fIwc\fR\fB)\fRiswctype(\fIwc,\fR\fB wctype(\fR"alpha"\fB))\fR iswcntrl(\fIwc\fR\fB)\fRiswctype(\fIwc,\fR\fB wctype(\fR"cntrl"\fB))\fR iswdigit(\fI wc\fR\fB)\fRiswctype(\fIwc,\fR\fB wctype(\fR"digit"\fB))\fR iswgraph(\fIwc\fR\fB)\fRiswctype(\fIwc,\fR\fB wctype(\fR"graph"\fB))\fR iswlower(\fIwc\fR\fB)\fRiswctype(\fIwc,\fR\fB wctype(\fR"lower"\fB))\fR iswprint(\fIwc\fR\fB)\fRiswctype(\fIwc,\fR\fB wctype(\fR"print"\fB))\fR iswpunct(\fIwc\fR\fB)\fRiswctype(\fI wc,\fR\fB wctype(\fR"punct"\fB))\fR iswspace(\fIwc\fR\fB)\fRiswctype(\fIwc,\fR\fB wctype(\fR"space"\fB))\fR iswupper(\fIwc\fR\fB)\fRiswctype(\fIwc,\fR\fB wctype(\fR"upper"\fB))\fR iswxdigit(\fIwc\fR\fB)\fRiswctype(\fIwc,\fR\fB wctype(\fR"xdigit"\fB))\fR .TE .sp .LP The call .sp .LP \fBiswctype(\fR\fIwc,\fR\fB wctype(\fR"blank"\fB))\fR .sp .LP does not have an equivalent \fBisw*(\|)\fR function. .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) . \fBATTRIBUTE TYPE\fR\fBATTRIBUTE VALUE\fR _ CSIEnabled _ Interface StabilityStandard _ MT-LevelMT-Safe with exceptions .TE .SH SEE ALSO .sp .LP \fBiswalpha\fR(3C), \fBsetlocale\fR(3C), \fBwctype\fR(3C), \fBattributes\fR(5), \fBenviron\fR(5), \fBstandards\fR(5)