xref: /freebsd/lib/libc/locale/iswalnum_l.3 (revision 734e82fe33aa764367791a7d603b383996c6b40b)
1.\" Copyright (c) 2012 Isabell Long <issyl0@FreeBSD.org>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\"
13.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.Dd July 25, 2012
26.Dt ISWALNUM_L 3
27.Os
28.Sh NAME
29.Nm iswalnum_l ,
30.Nm iswalpha_l ,
31.Nm iswcntrl_l ,
32.Nm iswctype_l ,
33.Nm iswdigit_l ,
34.Nm iswgraph_l ,
35.Nm iswlower_l ,
36.Nm iswprint_l ,
37.Nm iswpunct_l ,
38.Nm iswspace_l ,
39.Nm iswupper_l ,
40.Nm iswxdigit_l ,
41.Nm towlower_l ,
42.Nm towupper_l ,
43.Nm wctype_l ,
44.Nm iswblank_l ,
45.Nm iswhexnumber_l ,
46.Nm iswideogram_l ,
47.Nm iswnumber_l ,
48.Nm iswphonogram_l ,
49.Nm iswrune_l ,
50.Nm iswspecial_l ,
51.Nm nextwctype_l ,
52.Nm towctrans_l ,
53.Nm wctrans_l
54.Nd wide character classification utilities
55.Sh LIBRARY
56.Lb libc
57.Sh SYNOPSIS
58.In wctype.h
59.Ft int
60.Fn iswalnum_l "wint_t wc" "locale_t loc"
61.Ft int
62.Fn iswalpha_l "wint_t wc" "locale_t loc"
63.Ft int
64.Fn iswcntrl_l "wint_t wc" "locale_t loc"
65.Ft int
66.Fn iswctype_l "wint_t wc" "locale_t loc"
67.Ft int
68.Fn iswdigit_l "wint_t wc" "locale_t loc"
69.Ft int
70.Fn iswgraph_l "wint_t wc" "locale_t loc"
71.Ft int
72.Fn iswlower_l "wint_t wc" "locale_t loc"
73.Ft int
74.Fn iswprint_l "wint_t wc" "locale_t loc"
75.Ft int
76.Fn iswpunct_l "wint_t wc" "locale_t loc"
77.Ft int
78.Fn iswspace_l "wint_t wc" "locale_t loc"
79.Ft int
80.Fn iswupper_l "wint_t wc" "locale_t loc"
81.Ft int
82.Fn iswxdigit_l "wint_t wc" "locale_t loc"
83.Ft wint_t
84.Fn towlower_l "wint_t wc" "locale_t loc"
85.Ft wint_t
86.Fn towupper_l "wint_t wc" "locale_t loc"
87.Ft wctype_t
88.Fn wctype_l "wint_t wc" "locale_t loc"
89.Ft int
90.Fn iswblank_l "wint_t wc" "locale_t loc"
91.Ft int
92.Fn iswhexnumber_l "wint_t wc" "locale_t loc"
93.Ft int
94.Fn iswideogram_l "wint_t wc" "locale_t loc"
95.Ft int
96.Fn iswnumber_l "wint_t wc" "locale_t loc"
97.Ft int
98.Fn iswphonogram_l "wint_t wc" "locale_t loc"
99.Ft int
100.Fn iswrune_l "wint_t wc" "locale_t loc"
101.Ft int
102.Fn iswspecial_l "wint_t wc" "locale_t loc"
103.Ft wint_t
104.Fn nextwctype_l "wint_t wc" "locale_t loc"
105.Ft wint_t
106.Fn towctrans_l "wint_t wc" "wctrans_t" "locale_t loc"
107.Ft wctrans_t
108.Fn wctrans_l "const char *" "locale_t loc"
109.Sh DESCRIPTION
110The above functions are character classification utility functions,
111for use with wide characters
112.Vt ( wchar_t
113or
114.Vt wint_t )
115in the locale
116.Fa loc .
117They behave in the same way as the versions without the _l suffix, but use
118the specified locale rather than the global or per-thread locale.
119These functions may be implemented as inline functions in
120.In wctype.h
121and as functions in the C library.
122See the specific manual pages for more information.
123.Sh RETURN VALUES
124These functions return the same things as their non-locale versions.
125If the locale is invalid, their behaviors are undefined.
126.Sh SEE ALSO
127.Xr iswalnum 3 ,
128.Xr iswalpha 3 ,
129.Xr iswblank 3 ,
130.Xr iswcntrl 3 ,
131.Xr iswctype 3 ,
132.Xr iswdigit 3 ,
133.Xr iswgraph 3 ,
134.Xr iswhexnumber 3 ,
135.Xr iswideogram 3 ,
136.Xr iswlower 3 ,
137.Xr iswnumber 3 ,
138.Xr iswphonogram 3 ,
139.Xr iswprint 3 ,
140.Xr iswpunct 3 ,
141.Xr iswrune 3 ,
142.Xr iswspace 3 ,
143.Xr iswspecial 3 ,
144.Xr iswupper 3 ,
145.Xr iswxdigit 3 ,
146.Xr nextwctype 3 ,
147.Xr towctrans 3 ,
148.Xr towlower 3 ,
149.Xr towupper 3 ,
150.Xr wctrans 3 ,
151.Xr wctype 3
152.Sh STANDARDS
153These functions conform to
154.St -p1003.1-2008 ,
155except for
156.Fn iswascii_l ,
157.Fn iswhexnumber_l ,
158.Fn iswideogram_l ,
159.Fn iswphonogram_l ,
160.Fn iswrune_l ,
161.Fn iswspecial_l
162and
163.Fn nextwctype_l
164which are
165.Fx
166extensions.
167