xref: /freebsd/lib/libc/locale/ctype_l.3 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1.\" Copyright (c) 2011 The FreeBSD Foundation
2.\"
3.\" This documentation was written by David Chisnall under sponsorship from
4.\" the FreeBSD Foundation.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\"
15.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
16.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
27.Dd December 19, 2022
28.Dt CTYPE_L 3
29.Os
30.Sh NAME
31.Nm digittoint_l ,
32.Nm isalnum_l ,
33.Nm isalpha_l ,
34.Nm isblank_l ,
35.Nm iscntrl_l ,
36.Nm isdigit_l ,
37.Nm isgraph_l ,
38.Nm ishexnumber_l ,
39.Nm isideogram_l ,
40.Nm islower_l ,
41.Nm isnumber_l ,
42.Nm isphonogram_l ,
43.Nm isprint_l ,
44.Nm ispunct_l ,
45.Nm isrune_l ,
46.Nm isspace_l ,
47.Nm isspecial_l ,
48.Nm isupper_l ,
49.Nm isxdigit_l ,
50.Nm tolower_l ,
51.Nm toupper_l
52.Nd character classification functions
53.Sh LIBRARY
54.Lb libc
55.Sh SYNOPSIS
56.In ctype.h
57.Ft int
58.Fn digittoint_l "int c" "locale_t loc"
59.Ft int
60.Fn isalnum_l "int c" "locale_t loc"
61.Ft int
62.Fn isalpha_l "int c" "locale_t loc"
63.Ft int
64.Fn iscntrl_l "int c" "locale_t loc"
65.Ft int
66.Fn isdigit_l "int c" "locale_t loc"
67.Ft int
68.Fn isgraph_l "int c" "locale_t loc"
69.Ft int
70.Fn ishexnumber_l "int c" "locale_t loc"
71.Ft int
72.Fn isideogram_l "int c" "locale_t loc"
73.Ft int
74.Fn islower_l "int c" "locale_t loc"
75.Ft int
76.Fn isnumber_l "int c" "locale_t loc"
77.Ft int
78.Fn isphonogram_l "int c" "locale_t loc"
79.Ft int
80.Fn isspecial_l "int c" "locale_t loc"
81.Ft int
82.Fn isprint_l "int c" "locale_t loc"
83.Ft int
84.Fn ispunct_l "int c" "locale_t loc"
85.Ft int
86.Fn isrune_l "int c" "locale_t loc"
87.Ft int
88.Fn isspace_l "int c" "locale_t loc"
89.Ft int
90.Fn isupper_l "int c" "locale_t loc"
91.Ft int
92.Fn isxdigit_l "int c" "locale_t loc"
93.Ft int
94.Fn tolower_l "int c" "locale_t loc"
95.Ft int
96.Fn toupper_l "int c" "locale_t loc"
97.Sh DESCRIPTION
98The above functions perform character tests and conversions on the integer
99.Fa c
100in the locale
101.Fa loc .
102They behave in the same way as the versions without the _l suffix, but use the
103specified locale rather than the global or per-thread locale.
104.In ctype.h ,
105or as true functions in the C library.
106See the specific manual pages for more information.
107.Sh SEE ALSO
108.Xr digittoint_l 3 ,
109.Xr isalnum_l 3 ,
110.Xr isalpha_l 3 ,
111.Xr isblank_l 3 ,
112.Xr iscntrl_l 3 ,
113.Xr isdigit_l 3 ,
114.Xr isgraph_l 3 ,
115.Xr isideogram_l 3 ,
116.Xr islower_l 3 ,
117.Xr isphonogram_l 3 ,
118.Xr isprint_l 3 ,
119.Xr ispunct_l 3 ,
120.Xr isrune_l 3 ,
121.Xr isspace_l 3 ,
122.Xr isspecial_l 3 ,
123.Xr isupper_l 3 ,
124.Xr isxdigit_l 3 ,
125.Xr tolower_l 3 ,
126.Xr toupper_l 3 ,
127.Xr wctype_l 3 ,
128.Xr xlocale_l 3
129.Sh STANDARDS
130These functions conform to
131.St -p1003.1-2008 ,
132except for
133.Fn digittoint_l ,
134.Fn ishexnumber_l ,
135.Fn isideogram_l ,
136.Fn isnumber_l ,
137.Fn isphonogram_l ,
138.Fn isrune_l
139and
140.Fn isspecial_l
141which are
142.Fx
143extensions.
144