]> git.saurik.com Git - apple/libc.git/blame - locale/FreeBSD/iswalnum.3
Libc-1082.20.4.tar.gz
[apple/libc.git] / locale / FreeBSD / iswalnum.3
CommitLineData
9385eb3d
A
1.\" $NetBSD: iswalnum.3,v 1.5 2002/07/10 14:46:10 yamt Exp $
2.\"
3.\" Copyright (c) 1991 The Regents of the University of California.
4.\" All rights reserved.
e9ce8d39 5.\"
5b2abdfb
A
6.\" This code is derived from software contributed to Berkeley by
7.\" the American National Standards Committee X3, on Information
8.\" Processing Systems.
9.\"
e9ce8d39
A
10.\" Redistribution and use in source and binary forms, with or without
11.\" modification, are permitted provided that the following conditions
12.\" are met:
13.\" 1. Redistributions of source code must retain the above copyright
14.\" notice, this list of conditions and the following disclaimer.
15.\" 2. Redistributions in binary form must reproduce the above copyright
16.\" notice, this list of conditions and the following disclaimer in the
17.\" documentation and/or other materials provided with the distribution.
e9ce8d39
A
18.\" 4. Neither the name of the University nor the names of its contributors
19.\" may be used to endorse or promote products derived from this software
20.\" without specific prior written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
9385eb3d 34.\" @(#)isalnum.3 5.2 (Berkeley) 6/29/91
1f2f436a 35.\" $FreeBSD: src/lib/libc/locale/iswalnum.3,v 1.6 2007/01/09 00:28:00 imp Exp $
e9ce8d39 36.\"
9385eb3d
A
37.Dd October 3, 2002
38.Dt ISWALNUM 3
e9ce8d39
A
39.Os
40.Sh NAME
9385eb3d
A
41.Nm iswalnum ,
42.Nm iswalpha ,
43.Nm iswascii ,
44.Nm iswblank ,
45.Nm iswcntrl ,
46.Nm iswdigit ,
47.Nm iswgraph ,
48.Nm iswhexnumber ,
49.Nm iswideogram ,
50.Nm iswlower ,
51.Nm iswnumber ,
52.Nm iswphonogram ,
53.Nm iswprint ,
54.Nm iswpunct ,
55.Nm iswrune ,
56.Nm iswspace ,
57.Nm iswspecial ,
58.Nm iswupper ,
59.Nm iswxdigit
60.Nd wide character classification utilities
e9ce8d39
A
61.Sh LIBRARY
62.Lb libc
63.Sh SYNOPSIS
9385eb3d
A
64.In wctype.h
65.Ft int
66.Fn iswalnum "wint_t wc"
67.Ft int
68.Fn iswalpha "wint_t wc"
69.Ft int
70.Fn iswascii "wint_t wc"
71.Ft int
72.Fn iswblank "wint_t wc"
73.Ft int
74.Fn iswcntrl "wint_t wc"
75.Ft int
76.Fn iswdigit "wint_t wc"
77.Ft int
78.Fn iswgraph "wint_t wc"
79.Ft int
80.Fn iswhexnumber "wint_t wc"
81.Ft int
82.Fn iswideogram "wint_t wc"
83.Ft int
84.Fn iswlower "wint_t wc"
85.Ft int
86.Fn iswnumber "wint_t wc"
87.Ft int
88.Fn iswphonogram "wint_t wc"
89.Ft int
90.Fn iswprint "wint_t wc"
91.Ft int
92.Fn iswpunct "wint_t wc"
93.Ft int
94.Fn iswrune "wint_t wc"
95.Ft int
96.Fn iswspace "wint_t wc"
97.Ft int
98.Fn iswspecial "wint_t wc"
99.Ft int
100.Fn iswupper "wint_t wc"
e9ce8d39 101.Ft int
9385eb3d 102.Fn iswxdigit "wint_t wc"
e9ce8d39 103.Sh DESCRIPTION
9385eb3d
A
104The above functions are character classification utility functions,
105for use with wide characters
106.Vt ( wchar_t
107or
108.Vt wint_t ) .
109See the description for the similarly-named single byte classification
ad3c9f2a 110functions (such as
9385eb3d
A
111.Xr isalnum 3 ) ,
112for details.
ad3c9f2a
A
113.Pp
114Extended locale versions of these functions are documented in
115.Xr iswalnum_l 3 .
116See
117.Xr xlocale 3
118for more information.
e9ce8d39 119.Sh RETURN VALUES
9385eb3d
A
120The functions return zero if the character tests false and
121return non-zero if the character tests true.
e9ce8d39 122.Sh SEE ALSO
5b2abdfb
A
123.Xr isalnum 3 ,
124.Xr isalpha 3 ,
125.Xr isascii 3 ,
9385eb3d 126.Xr isblank 3 ,
5b2abdfb
A
127.Xr iscntrl 3 ,
128.Xr isdigit 3 ,
129.Xr isgraph 3 ,
9385eb3d
A
130.Xr ishexnumber 3 ,
131.Xr isideogram 3 ,
5b2abdfb 132.Xr islower 3 ,
9385eb3d
A
133.Xr isnumber 3 ,
134.Xr isphonogram 3 ,
5b2abdfb
A
135.Xr isprint 3 ,
136.Xr ispunct 3 ,
9385eb3d 137.Xr isrune 3 ,
5b2abdfb 138.Xr isspace 3 ,
9385eb3d 139.Xr isspecial 3 ,
5b2abdfb 140.Xr isupper 3 ,
ad3c9f2a 141.Xr iswalnum_l 3 ,
5b2abdfb 142.Xr isxdigit 3 ,
9385eb3d 143.Xr wctype 3
5b2abdfb 144.Sh STANDARDS
9385eb3d
A
145These functions conform to
146.St -p1003.1-2001 ,
147except
148.Fn iswascii ,
149.Fn iswhexnumber ,
150.Fn iswideogram ,
151.Fn iswnumber ,
152.Fn iswphonogram ,
ad3c9f2a 153.Fn iswrune ,
9385eb3d
A
154and
155.Fn iswspecial ,
156which are
157.Fx
158extensions.
159.Sh CAVEATS
160The result of these functions is undefined unless
161the argument is
162.Dv WEOF
163or a valid
164.Vt wchar_t
165value for the current locale.