1.\" Copyright (c) 1991, 1993 2.\" The Regents of the University of California. All rights reserved.
| 1.\" Copyright (c) 2011 The FreeBSD Foundation 2.\" All rights reserved.
|
3.\"
| 3.\"
|
| 4.\" This documentation was written by David Chisnall under sponsorship from 5.\" the FreeBSD Foundation. 6.\"
|
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.
| 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions 9.\" are met: 10.\" 1. Redistributions of source code must retain the above copyright 11.\" notice, this list of conditions and the following disclaimer. 12.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" notice, this list of conditions and the following disclaimer in the 14.\" documentation and/or other materials provided with the distribution.
|
12.\" 4. Neither the name of the University nor the names of its contributors 13.\" may be used to endorse or promote products derived from this software 14.\" without specific prior written permission.
| |
15.\" 16.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 17.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\"
| 15.\" 16.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 17.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\"
|
28.\" @(#)ctype.3 8.1 (Berkeley) 6/4/93 29.\" $FreeBSD: head/lib/libc/locale/ctype.3 196820 2009-09-04 07:44:58Z des $
| 28.\" $FreeBSD: head/lib/libc/locale/ctype_l.3 232935 2012-03-13 20:02:41Z theraven $
|
30.\"
| 29.\"
|
31.Dd March 30, 2004 32.Dt CTYPE 3
| 30.Dd March 6, 2012 31.Dt CTYPE_L 3
|
33.Os 34.Sh NAME
| 32.Os 33.Sh NAME
|
35.Nm digittoint , 36.Nm isalnum , 37.Nm isalpha , 38.Nm isascii , 39.Nm isblank , 40.Nm iscntrl , 41.Nm isdigit , 42.Nm isgraph , 43.Nm ishexnumber , 44.Nm isideogram , 45.Nm islower , 46.Nm isnumber , 47.Nm isphonogram , 48.Nm isprint , 49.Nm ispunct , 50.Nm isrune , 51.Nm isspace , 52.Nm isspecial , 53.Nm isupper , 54.Nm isxdigit , 55.Nm toascii , 56.Nm tolower , 57.Nm toupper 58.Nd character classification macros
| 34.Nm digittoint_l , 35.Nm isalnum_l , 36.Nm isalpha_l , 37.Nm isascii_l , 38.Nm isblank_l , 39.Nm iscntrl_l , 40.Nm isdigit_l , 41.Nm isgraph_l , 42.Nm ishexnumber_l , 43.Nm isideogram_l , 44.Nm islower_l , 45.Nm isnumber_l , 46.Nm isphonogram_l , 47.Nm isprint_l , 48.Nm ispunct_l , 49.Nm isrune_l , 50.Nm isspace_l , 51.Nm isspecial_l , 52.Nm isupper_l , 53.Nm isxdigit_l , 54.Nm tolower_l , 55.Nm toupper_l 56.Nd character classification functions
|
59.Sh LIBRARY 60.Lb libc 61.Sh SYNOPSIS 62.In ctype.h 63.Ft int
| 57.Sh LIBRARY 58.Lb libc 59.Sh SYNOPSIS 60.In ctype.h 61.Ft int
|
64.Fn digittoint "int c"
| 62.Fn digittoint_l "int c" "locale_t loc"
|
65.Ft int
| 63.Ft int
|
66.Fn isalnum "int c"
| 64.Fn isalnum_l "int c" "locale_t loc"
|
67.Ft int
| 65.Ft int
|
68.Fn isalpha "int c"
| 66.Fn isalpha_l "int c" "locale_t loc"
|
69.Ft int
| 67.Ft int
|
70.Fn isascii "int c"
| 68.Fn isascii_l "int c" "locale_t loc"
|
71.Ft int
| 69.Ft int
|
72.Fn iscntrl "int c"
| 70.Fn iscntrl_l "int c" "locale_t loc"
|
73.Ft int
| 71.Ft int
|
74.Fn isdigit "int c"
| 72.Fn isdigit_l "int c" "locale_t loc"
|
75.Ft int
| 73.Ft int
|
76.Fn isgraph "int c"
| 74.Fn isgraph_l "int c" "locale_t loc"
|
77.Ft int
| 75.Ft int
|
78.Fn ishexnumber "int c"
| 76.Fn ishexnumber_l "int c" "locale_t loc"
|
79.Ft int
| 77.Ft int
|
80.Fn isideogram "int c"
| 78.Fn isideogram_l "int c" "locale_t loc"
|
81.Ft int
| 79.Ft int
|
82.Fn islower "int c"
| 80.Fn islower_l "int c" "locale_t loc"
|
83.Ft int
| 81.Ft int
|
84.Fn isnumber "int c"
| 82.Fn isnumber_l "int c" "locale_t loc"
|
85.Ft int
| 83.Ft int
|
86.Fn isphonogram "int c"
| 84.Fn isphonogram_l "int c" "locale_t loc"
|
87.Ft int
| 85.Ft int
|
88.Fn isspecial "int c"
| 86.Fn isspecial_l "int c" "locale_t loc"
|
89.Ft int
| 87.Ft int
|
90.Fn isprint "int c"
| 88.Fn isprint_l "int c" "locale_t loc"
|
91.Ft int
| 89.Ft int
|
92.Fn ispunct "int c"
| 90.Fn ispunct_l "int c" "locale_t loc"
|
93.Ft int
| 91.Ft int
|
94.Fn isrune "int c"
| 92.Fn isrune_l "int c" "locale_t loc"
|
95.Ft int
| 93.Ft int
|
96.Fn isspace "int c"
| 94.Fn isspace_l "int c" "locale_t loc"
|
97.Ft int
| 95.Ft int
|
98.Fn isupper "int c"
| 96.Fn isupper_l "int c" "locale_t loc"
|
99.Ft int
| 97.Ft int
|
100.Fn isxdigit "int c"
| 98.Fn isxdigit_l "int c" "locale_t loc"
|
101.Ft int
| 99.Ft int
|
102.Fn toascii "int c"
| 100.Fn tolower_l "int c" "locale_t loc"
|
103.Ft int
| 101.Ft int
|
104.Fn tolower "int c" 105.Ft int 106.Fn toupper "int c"
| 102.Fn toupper_l "int c" "locale_t loc"
|
107.Sh DESCRIPTION 108The above functions perform character tests and conversions on the integer
| 103.Sh DESCRIPTION 104The above functions perform character tests and conversions on the integer
|
109.Fa c . 110They are available as macros, defined in the include file
| 105.Fa c 106in the locale 107.Fa loc . 108They behave in the same way as the versions without the _l suffix, but use the 109specified locale rather than the global or per-thread locale.
|
111.In ctype.h , 112or as true functions in the C library. 113See the specific manual pages for more information. 114.Sh SEE ALSO 115.Xr digittoint 3 , 116.Xr isalnum 3 , 117.Xr isalpha 3 , 118.Xr isascii 3 , 119.Xr isblank 3 , 120.Xr iscntrl 3 , 121.Xr isdigit 3 , 122.Xr isgraph 3 , 123.Xr isideogram 3 , 124.Xr islower 3 , 125.Xr isphonogram 3 , 126.Xr isprint 3 , 127.Xr ispunct 3 , 128.Xr isrune 3 , 129.Xr isspace 3 , 130.Xr isspecial 3 , 131.Xr isupper 3 , 132.Xr isxdigit 3 ,
| 110.In ctype.h , 111or as true functions in the C library. 112See the specific manual pages for more information. 113.Sh SEE ALSO 114.Xr digittoint 3 , 115.Xr isalnum 3 , 116.Xr isalpha 3 , 117.Xr isascii 3 , 118.Xr isblank 3 , 119.Xr iscntrl 3 , 120.Xr isdigit 3 , 121.Xr isgraph 3 , 122.Xr isideogram 3 , 123.Xr islower 3 , 124.Xr isphonogram 3 , 125.Xr isprint 3 , 126.Xr ispunct 3 , 127.Xr isrune 3 , 128.Xr isspace 3 , 129.Xr isspecial 3 , 130.Xr isupper 3 , 131.Xr isxdigit 3 ,
|
133.Xr toascii 3 ,
| |
134.Xr tolower 3 , 135.Xr toupper 3 , 136.Xr wctype 3 ,
| 132.Xr tolower 3 , 133.Xr toupper 3 , 134.Xr wctype 3 ,
|
137.Xr ascii 7
| 135.Xr xlocale 3
|
138.Sh STANDARDS
| 136.Sh STANDARDS
|
139These functions, except for 140.Fn digittoint , 141.Fn isascii , 142.Fn ishexnumber , 143.Fn isideogram , 144.Fn isnumber , 145.Fn isphonogram , 146.Fn isrune , 147.Fn isspecial 148and 149.Fn toascii , 150conform to 151.St -isoC .
| 137These functions conform to 138.St -p1003.1-2008 .
|
| |