xref: /freebsd/lib/libc/locale/iswalnum.3 (revision 17f6e5b0e75d516b749a1ff868dd3c536ff31f12)
1008a2c53STim J. Robbins.\"	$NetBSD: iswalnum.3,v 1.5 2002/07/10 14:46:10 yamt Exp $
2008a2c53STim J. Robbins.\"
3008a2c53STim J. Robbins.\" Copyright (c) 1991 The Regents of the University of California.
4008a2c53STim J. Robbins.\" All rights reserved.
5008a2c53STim J. Robbins.\"
6008a2c53STim J. Robbins.\" This code is derived from software contributed to Berkeley by
7008a2c53STim J. Robbins.\" the American National Standards Committee X3, on Information
8008a2c53STim J. Robbins.\" Processing Systems.
9008a2c53STim J. Robbins.\"
10008a2c53STim J. Robbins.\" Redistribution and use in source and binary forms, with or without
11008a2c53STim J. Robbins.\" modification, are permitted provided that the following conditions
12008a2c53STim J. Robbins.\" are met:
13008a2c53STim J. Robbins.\" 1. Redistributions of source code must retain the above copyright
14008a2c53STim J. Robbins.\"    notice, this list of conditions and the following disclaimer.
15008a2c53STim J. Robbins.\" 2. Redistributions in binary form must reproduce the above copyright
16008a2c53STim J. Robbins.\"    notice, this list of conditions and the following disclaimer in the
17008a2c53STim J. Robbins.\"    documentation and/or other materials provided with the distribution.
18008a2c53STim J. Robbins.\" 3. All advertising materials mentioning features or use of this software
19008a2c53STim J. Robbins.\"    must display the following acknowledgement:
20008a2c53STim J. Robbins.\"	This product includes software developed by the University of
21008a2c53STim J. Robbins.\"	California, Berkeley and its contributors.
22008a2c53STim J. Robbins.\" 4. Neither the name of the University nor the names of its contributors
23008a2c53STim J. Robbins.\"    may be used to endorse or promote products derived from this software
24008a2c53STim J. Robbins.\"    without specific prior written permission.
25008a2c53STim J. Robbins.\"
26008a2c53STim J. Robbins.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27008a2c53STim J. Robbins.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28008a2c53STim J. Robbins.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29008a2c53STim J. Robbins.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30008a2c53STim J. Robbins.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31008a2c53STim J. Robbins.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32008a2c53STim J. Robbins.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33008a2c53STim J. Robbins.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34008a2c53STim J. Robbins.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35008a2c53STim J. Robbins.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36008a2c53STim J. Robbins.\" SUCH DAMAGE.
37008a2c53STim J. Robbins.\"
38008a2c53STim J. Robbins.\"     @(#)isalnum.3	5.2 (Berkeley) 6/29/91
39008a2c53STim J. Robbins.\" $FreeBSD$
40008a2c53STim J. Robbins.\"
41008a2c53STim J. Robbins.Dd December 22, 2000
42008a2c53STim J. Robbins.Dt ISWALNUM 3
43008a2c53STim J. Robbins.Os
44008a2c53STim J. Robbins.Sh NAME
45008a2c53STim J. Robbins.Nm iswalnum ,
46008a2c53STim J. Robbins.Nm iswalpha ,
4721b7821aSTim J. Robbins.Nm iswascii ,
48008a2c53STim J. Robbins.Nm iswblank ,
49008a2c53STim J. Robbins.Nm iswcntrl ,
50008a2c53STim J. Robbins.Nm iswdigit ,
51008a2c53STim J. Robbins.Nm iswgraph ,
5221b7821aSTim J. Robbins.Nm iswhexnumber ,
5321b7821aSTim J. Robbins.Nm iswideogram ,
54008a2c53STim J. Robbins.Nm iswlower ,
5521b7821aSTim J. Robbins.Nm iswnumber ,
5621b7821aSTim J. Robbins.Nm iswphonogram ,
57008a2c53STim J. Robbins.Nm iswprint ,
58008a2c53STim J. Robbins.Nm iswpunct ,
5921b7821aSTim J. Robbins.Nm iswrune ,
60008a2c53STim J. Robbins.Nm iswspace ,
6121b7821aSTim J. Robbins.Nm iswspecial ,
62008a2c53STim J. Robbins.Nm iswupper ,
63008a2c53STim J. Robbins.Nm iswxdigit
64008a2c53STim J. Robbins.Nd wide character classification utilities
65008a2c53STim J. Robbins.Sh LIBRARY
66008a2c53STim J. Robbins.Lb libc
67008a2c53STim J. Robbins.Sh SYNOPSIS
6821b7821aSTim J. Robbins.In wctype.h
69008a2c53STim J. Robbins.Ft int
70008a2c53STim J. Robbins.Fn iswalnum "wint_t wc"
71008a2c53STim J. Robbins.Ft int
72008a2c53STim J. Robbins.Fn iswalpha "wint_t wc"
73008a2c53STim J. Robbins.Ft int
74677adc79STim J. Robbins.Fn iswascii "wint_t wc"
75677adc79STim J. Robbins.Ft int
76008a2c53STim J. Robbins.Fn iswblank "wint_t wc"
77008a2c53STim J. Robbins.Ft int
78008a2c53STim J. Robbins.Fn iswcntrl "wint_t wc"
79008a2c53STim J. Robbins.Ft int
80008a2c53STim J. Robbins.Fn iswdigit "wint_t wc"
81008a2c53STim J. Robbins.Ft int
82008a2c53STim J. Robbins.Fn iswgraph "wint_t wc"
83008a2c53STim J. Robbins.Ft int
84677adc79STim J. Robbins.Fn iswhexnumber "wint_t wc"
85677adc79STim J. Robbins.Ft int
86677adc79STim J. Robbins.Fn iswideogram "wint_t wc"
87677adc79STim J. Robbins.Ft int
88008a2c53STim J. Robbins.Fn iswlower "wint_t wc"
89008a2c53STim J. Robbins.Ft int
90677adc79STim J. Robbins.Fn iswnumber "wint_t wc"
91677adc79STim J. Robbins.Ft int
92677adc79STim J. Robbins.Fn iswphonogram "wint_t wc"
93677adc79STim J. Robbins.Ft int
94008a2c53STim J. Robbins.Fn iswprint "wint_t wc"
95008a2c53STim J. Robbins.Ft int
96008a2c53STim J. Robbins.Fn iswpunct "wint_t wc"
97008a2c53STim J. Robbins.Ft int
98677adc79STim J. Robbins.Fn iswrune "wint_t wc"
99677adc79STim J. Robbins.Ft int
100008a2c53STim J. Robbins.Fn iswspace "wint_t wc"
101008a2c53STim J. Robbins.Ft int
102677adc79STim J. Robbins.Fn iswspecial "wint_t wc"
103677adc79STim J. Robbins.Ft int
104008a2c53STim J. Robbins.Fn iswupper "wint_t wc"
105008a2c53STim J. Robbins.Ft int
106008a2c53STim J. Robbins.Fn iswxdigit "wint_t wc"
107008a2c53STim J. Robbins.Sh DESCRIPTION
10817f6e5b0STim J. RobbinsThe above functions are character classification utility functions,
109008a2c53STim J. Robbinsfor use with wide characters
110008a2c53STim J. Robbins.Po
111008a2c53STim J. Robbins.Fa wchar_t
112008a2c53STim J. Robbinsor
113008a2c53STim J. Robbins.Fa wint_t
114008a2c53STim J. Robbins.Pc .
11517f6e5b0STim J. RobbinsSee the description for the similarly-named single byte classification
11617f6e5b0STim J. Robbinsfunctions (like
11717f6e5b0STim J. Robbins.Xr isalnum 3 ),
118008a2c53STim J. Robbinsfor details.
119008a2c53STim J. Robbins.Sh RETURN VALUES
120008a2c53STim J. RobbinsThe functions return zero if the character tests false and
121008a2c53STim J. Robbinsreturn non-zero if the character tests true.
122008a2c53STim J. Robbins.Sh SEE ALSO
123008a2c53STim J. Robbins.Xr isalnum 3 ,
124008a2c53STim J. Robbins.Xr isalpha 3 ,
12521b7821aSTim J. Robbins.Xr isascii 3 ,
126008a2c53STim J. Robbins.Xr isblank 3 ,
127008a2c53STim J. Robbins.Xr iscntrl 3 ,
128008a2c53STim J. Robbins.Xr isdigit 3 ,
129008a2c53STim J. Robbins.Xr isgraph 3 ,
13021b7821aSTim J. Robbins.Xr ishexnumber 3 ,
13121b7821aSTim J. Robbins.Xr isideogram 3 ,
132008a2c53STim J. Robbins.Xr islower 3 ,
13321b7821aSTim J. Robbins.Xr isnumber 3 ,
13421b7821aSTim J. Robbins.Xr isphonogram 3 ,
135008a2c53STim J. Robbins.Xr isprint 3 ,
136008a2c53STim J. Robbins.Xr ispunct 3 ,
13721b7821aSTim J. Robbins.Xr isrune 3 ,
138008a2c53STim J. Robbins.Xr isspace 3 ,
13921b7821aSTim J. Robbins.Xr isspecial 3 ,
140008a2c53STim J. Robbins.Xr isupper 3 ,
14121b7821aSTim J. Robbins.Xr isxdigit 3 ,
14221b7821aSTim J. Robbins.Xr wctype 3
143008a2c53STim J. Robbins.Sh STANDARDS
14421b7821aSTim J. RobbinsThese functions conform to
14521b7821aSTim J. Robbins.St -p1003.1-2001 ,
14621b7821aSTim J. Robbinsexcept
14721b7821aSTim J. Robbins.Fn iswascii ,
14821b7821aSTim J. Robbins.Fn iswhexnumber ,
14921b7821aSTim J. Robbins.Fn iswideogram ,
15021b7821aSTim J. Robbins.Fn iswnumber ,
15121b7821aSTim J. Robbins.Fn iswphonogram ,
15221b7821aSTim J. Robbins.Fn iswrune
15321b7821aSTim J. Robbinsand
15421b7821aSTim J. Robbins.Fn iswspecial ,
15521b7821aSTim J. Robbinswhich are
15621b7821aSTim J. Robbins.Fx
15721b7821aSTim J. Robbinsextensions.
158008a2c53STim J. Robbins.Sh CAVEATS
15917f6e5b0STim J. RobbinsThe result of these functions is undefined unless
16017f6e5b0STim J. Robbinsthe argument is WEOF or a valid
16117f6e5b0STim J. Robbins.Vt wchar_t
16217f6e5b0STim J. Robbinsvalue for the current locale.
163