]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libc/locale/ctype_l.3
MFV: xz 5.2.9
[FreeBSD/FreeBSD.git] / lib / libc / locale / ctype_l.3
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 .\" $FreeBSD$
28 .\"
29 .Dd March 6, 2012
30 .Dt CTYPE_L 3
31 .Os
32 .Sh NAME
33 .Nm digittoint_l ,
34 .Nm isalnum_l ,
35 .Nm isalpha_l ,
36 .Nm isascii_l ,
37 .Nm isblank_l ,
38 .Nm iscntrl_l ,
39 .Nm isdigit_l ,
40 .Nm isgraph_l ,
41 .Nm ishexnumber_l ,
42 .Nm isideogram_l ,
43 .Nm islower_l ,
44 .Nm isnumber_l ,
45 .Nm isphonogram_l ,
46 .Nm isprint_l ,
47 .Nm ispunct_l ,
48 .Nm isrune_l ,
49 .Nm isspace_l ,
50 .Nm isspecial_l ,
51 .Nm isupper_l ,
52 .Nm isxdigit_l ,
53 .Nm tolower_l ,
54 .Nm toupper_l
55 .Nd character classification functions
56 .Sh LIBRARY
57 .Lb libc
58 .Sh SYNOPSIS
59 .In ctype.h
60 .Ft int
61 .Fn digittoint_l "int c" "locale_t loc"
62 .Ft int
63 .Fn isalnum_l "int c" "locale_t loc"
64 .Ft int
65 .Fn isalpha_l "int c" "locale_t loc"
66 .Ft int
67 .Fn isascii_l "int c" "locale_t loc"
68 .Ft int
69 .Fn iscntrl_l "int c" "locale_t loc"
70 .Ft int
71 .Fn isdigit_l "int c" "locale_t loc"
72 .Ft int
73 .Fn isgraph_l "int c" "locale_t loc"
74 .Ft int
75 .Fn ishexnumber_l "int c" "locale_t loc"
76 .Ft int
77 .Fn isideogram_l "int c" "locale_t loc"
78 .Ft int
79 .Fn islower_l "int c" "locale_t loc"
80 .Ft int
81 .Fn isnumber_l "int c" "locale_t loc"
82 .Ft int
83 .Fn isphonogram_l "int c" "locale_t loc"
84 .Ft int
85 .Fn isspecial_l "int c" "locale_t loc"
86 .Ft int
87 .Fn isprint_l "int c" "locale_t loc"
88 .Ft int
89 .Fn ispunct_l "int c" "locale_t loc"
90 .Ft int
91 .Fn isrune_l "int c" "locale_t loc"
92 .Ft int
93 .Fn isspace_l "int c" "locale_t loc"
94 .Ft int
95 .Fn isupper_l "int c" "locale_t loc"
96 .Ft int
97 .Fn isxdigit_l "int c" "locale_t loc"
98 .Ft int
99 .Fn tolower_l "int c" "locale_t loc"
100 .Ft int
101 .Fn toupper_l "int c" "locale_t loc"
102 .Sh DESCRIPTION
103 The above functions perform character tests and conversions on the integer
104 .Fa c
105 in the locale
106 .Fa loc .
107 They behave in the same way as the versions without the _l suffix, but use the
108 specified locale rather than the global or per-thread locale.
109 .In ctype.h ,
110 or as true functions in the C library.
111 See the specific manual pages for more information.
112 .Sh SEE ALSO
113 .Xr digittoint 3 ,
114 .Xr isalnum 3 ,
115 .Xr isalpha 3 ,
116 .Xr isascii 3 ,
117 .Xr isblank 3 ,
118 .Xr iscntrl 3 ,
119 .Xr isdigit 3 ,
120 .Xr isgraph 3 ,
121 .Xr isideogram 3 ,
122 .Xr islower 3 ,
123 .Xr isphonogram 3 ,
124 .Xr isprint 3 ,
125 .Xr ispunct 3 ,
126 .Xr isrune 3 ,
127 .Xr isspace 3 ,
128 .Xr isspecial 3 ,
129 .Xr isupper 3 ,
130 .Xr isxdigit 3 ,
131 .Xr tolower 3 ,
132 .Xr toupper 3 ,
133 .Xr wctype 3 ,
134 .Xr xlocale 3
135 .Sh STANDARDS
136 These functions conform to
137 .St -p1003.1-2008 ,
138 except for
139 .Fn digittoint_l ,
140 .Fn isascii_l ,
141 .Fn ishexnumber_l ,
142 .Fn isideogram_l ,
143 .Fn isnumber_l ,
144 .Fn isphonogram_l ,
145 .Fn isrune_l
146 and
147 .Fn isspecial_l
148 which are
149 .Fx
150 extensions.