1*0d5acd74SJohn Marino.\" Copyright (c) 2002 Tim J. Robbins 2eee2ef09SJoerg Sonnenberger.\" All rights reserved. 3eee2ef09SJoerg Sonnenberger.\" 4eee2ef09SJoerg Sonnenberger.\" Redistribution and use in source and binary forms, with or without 5eee2ef09SJoerg Sonnenberger.\" modification, are permitted provided that the following conditions 6eee2ef09SJoerg Sonnenberger.\" are met: 7eee2ef09SJoerg Sonnenberger.\" 1. Redistributions of source code must retain the above copyright 8eee2ef09SJoerg Sonnenberger.\" notice, this list of conditions and the following disclaimer. 9eee2ef09SJoerg Sonnenberger.\" 2. Redistributions in binary form must reproduce the above copyright 10eee2ef09SJoerg Sonnenberger.\" notice, this list of conditions and the following disclaimer in the 11eee2ef09SJoerg Sonnenberger.\" documentation and/or other materials provided with the distribution. 12eee2ef09SJoerg Sonnenberger.\" 13eee2ef09SJoerg Sonnenberger.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14eee2ef09SJoerg Sonnenberger.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15eee2ef09SJoerg Sonnenberger.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16eee2ef09SJoerg Sonnenberger.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17eee2ef09SJoerg Sonnenberger.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18eee2ef09SJoerg Sonnenberger.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19eee2ef09SJoerg Sonnenberger.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20eee2ef09SJoerg Sonnenberger.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21eee2ef09SJoerg Sonnenberger.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22eee2ef09SJoerg Sonnenberger.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23eee2ef09SJoerg Sonnenberger.\" SUCH DAMAGE. 24eee2ef09SJoerg Sonnenberger.\" 25*0d5acd74SJohn Marino.\" $FreeBSD: head/lib/libc/locale/wctype.3 163314 2006-10-13 16:11:12Z ru $ 26*0d5acd74SJohn Marino.\" 27*0d5acd74SJohn Marino.Dd March 27, 2004 28eee2ef09SJoerg Sonnenberger.Dt WCTYPE 3 29eee2ef09SJoerg Sonnenberger.Os 30eee2ef09SJoerg Sonnenberger.Sh NAME 31*0d5acd74SJohn Marino.Nm iswctype , wctype 32*0d5acd74SJohn Marino.Nd "wide character class functions" 33eee2ef09SJoerg Sonnenberger.Sh LIBRARY 34eee2ef09SJoerg Sonnenberger.Lb libc 35eee2ef09SJoerg Sonnenberger.Sh SYNOPSIS 36eee2ef09SJoerg Sonnenberger.In wctype.h 37*0d5acd74SJohn Marino.Ft int 38*0d5acd74SJohn Marino.Fn iswctype "wint_t wc" "wctype_t charclass" 39eee2ef09SJoerg Sonnenberger.Ft wctype_t 40*0d5acd74SJohn Marino.Fn wctype "const char *property" 41eee2ef09SJoerg Sonnenberger.Sh DESCRIPTION 42eee2ef09SJoerg SonnenbergerThe 43eee2ef09SJoerg Sonnenberger.Fn wctype 44*0d5acd74SJohn Marinofunction returns a value of type 45*0d5acd74SJohn Marino.Vt wctype_t 46*0d5acd74SJohn Marinowhich represents the requested wide character class and 47*0d5acd74SJohn Marinomay be used as the second argument for calls to 48eee2ef09SJoerg Sonnenberger.Fn iswctype . 49eee2ef09SJoerg Sonnenberger.Pp 50*0d5acd74SJohn MarinoThe following character class names are recognised: 51*0d5acd74SJohn Marino.Bl -column -offset indent ".Li alnum" ".Li cntrl" ".Li ideogram" ".Li print" ".Li space" 52*0d5acd74SJohn Marino.It Li "alnum cntrl ideogram print space xdigit" 53*0d5acd74SJohn Marino.It Li "alpha digit lower punct special" 54*0d5acd74SJohn Marino.It Li "blank graph phonogram rune upper" 55eee2ef09SJoerg Sonnenberger.El 56eee2ef09SJoerg Sonnenberger.Pp 57*0d5acd74SJohn MarinoThe 58*0d5acd74SJohn Marino.Fn iswctype 59*0d5acd74SJohn Marinofunction checks whether the wide character 60*0d5acd74SJohn Marino.Fa wc 61*0d5acd74SJohn Marinois in the character class 62*0d5acd74SJohn Marino.Fa charclass . 63*0d5acd74SJohn Marino.Sh RETURN VALUES 64*0d5acd74SJohn MarinoThe 65*0d5acd74SJohn Marino.Fn iswctype 66*0d5acd74SJohn Marinofunction returns non-zero if and only if 67*0d5acd74SJohn Marino.Fa wc 68*0d5acd74SJohn Marinohas the property described by 69*0d5acd74SJohn Marino.Fa charclass , 70*0d5acd74SJohn Marinoor 71*0d5acd74SJohn Marino.Fa charclass 72*0d5acd74SJohn Marinois zero. 73*0d5acd74SJohn Marino.Pp 74eee2ef09SJoerg SonnenbergerThe 75eee2ef09SJoerg Sonnenberger.Fn wctype 76*0d5acd74SJohn Marinofunction returns 0 if 77*0d5acd74SJohn Marino.Fa property 78*0d5acd74SJohn Marinois invalid, otherwise it returns a value of type 79*0d5acd74SJohn Marino.Vt wctype_t 80*0d5acd74SJohn Marinothat can be used in subsequent calls to 81*0d5acd74SJohn Marino.Fn iswctype . 82*0d5acd74SJohn Marino.Sh EXAMPLES 83*0d5acd74SJohn MarinoReimplement 84*0d5acd74SJohn Marino.Xr iswalpha 3 85*0d5acd74SJohn Marinoin terms of 86*0d5acd74SJohn Marino.Fn iswctype 87*0d5acd74SJohn Marinoand 88*0d5acd74SJohn Marino.Fn wctype : 89*0d5acd74SJohn Marino.Bd -literal -offset indent 90*0d5acd74SJohn Marinoint 91*0d5acd74SJohn Marinomyiswalpha(wint_t wc) 92*0d5acd74SJohn Marino{ 93*0d5acd74SJohn Marino return (iswctype(wc, wctype("alpha"))); 94*0d5acd74SJohn Marino} 95*0d5acd74SJohn Marino.Ed 96*0d5acd74SJohn Marino.Sh SEE ALSO 97*0d5acd74SJohn Marino.Xr ctype 3 , 98*0d5acd74SJohn Marino.Xr nextwctype 3 99*0d5acd74SJohn Marino.Sh STANDARDS 100*0d5acd74SJohn MarinoThe 101*0d5acd74SJohn Marino.Fn iswctype 102*0d5acd74SJohn Marinoand 103*0d5acd74SJohn Marino.Fn wctype 104*0d5acd74SJohn Marinofunctions conform to 105*0d5acd74SJohn Marino.St -p1003.1-2001 . 106*0d5acd74SJohn MarinoThe 107*0d5acd74SJohn Marino.Dq Li ideogram , 108*0d5acd74SJohn Marino.Dq Li phonogram , 109*0d5acd74SJohn Marino.Dq Li special , 110*0d5acd74SJohn Marinoand 111*0d5acd74SJohn Marino.Dq Li rune 112*0d5acd74SJohn Marinocharacter classes are extensions. 113*0d5acd74SJohn Marino.Sh HISTORY 114*0d5acd74SJohn MarinoThe 115*0d5acd74SJohn Marino.Fn iswctype 116*0d5acd74SJohn Marinoand 117*0d5acd74SJohn Marino.Fn wctype 118*0d5acd74SJohn Marinofunctions first appeared in 119*0d5acd74SJohn Marino.Fx 5.0 . 120