1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
|
/*
Copyright (c) 1989 The Regents of the University of California.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
*/
@node Ctype
@chapter Character Type Macros and Functions (@file{ctype.h})
This chapter groups macros (which are also available as subroutines)
to classify characters into several categories (alphabetic,
numeric, control characters, whitespace, and so on), or to perform
simple character mappings.
The header file @file{ctype.h} defines the macros.
@menu
* isalnum:: Alphanumeric character predicate (isalnum, isalnum_l)
* isalpha:: Alphabetic character predicate (isalpha, isalpha_l)
* isascii:: ASCII character predicate (isascii, isascii_l)
* isblank:: Blank character predicate (isblank, isblank_l)
* iscntrl:: Control character predicate (iscntrl, iscntrl_l)
* isdigit:: Decimal digit predicate (isdigit, isdigit_l)
* islower:: Lowercase character predicate (islower, islower_l)
* isprint:: Printable character predicates (isprint, isprint_l. isgraph, isgraph_l)
* ispunct:: Punctuation character predicate (ispunct, ispunct_l)
* isspace:: Whitespace character predicate (isspace, isspace_l)
* isupper:: Uppercase character predicate (isupper, isupper_l)
* isxdigit:: Hexadecimal digit predicate (isxdigit, isxdigit_l)
* toascii:: Force integers to ASCII range (toascii, toascii_l)
* tolower:: Translate characters to lowercase (tolower, tolower_l)
* toupper:: Translate characters to uppercase (toupper, toupper_l)
* iswalnum:: Alphanumeric wide character predicate (iswalnum, iswalnum_l)
* iswalpha:: Alphabetic wide character predicate (iswalpha, iswalpha_l)
* iswblank:: Blank wide character predicate (iswblank, iswblank_l)
* iswcntrl:: Control wide character predicate (iswcntrl, iswcntrl_l)
* iswdigit:: Decimal digit wide character predicate (iswdigit, iswdigit_l)
* iswgraph:: Graphic wide character predicate (iswgraph, iswgraph_l)
* iswlower:: Lowercase wide character predicate (iswlower, iswlower_l)
* iswprint:: Printable wide character predicate (iswprint, iswprint_l)
* iswpunct:: Punctuation wide character predicate (iswpunct, iswpunct_l)
* iswspace:: Whitespace wide character predicate (iswspace, iswspace_l)
* iswupper:: Uppercase wide character predicate (iswupper, iswupper_l)
* iswxdigit:: Hexadecimal digit wide character predicate (iswxdigit, iswxdigit_l)
* iswctype:: Extensible wide-character test (iswctype, iswctype_l)
* wctype:: Compute wide-character test type (wctype, wctype_l)
* towlower:: Translate wide characters to lowercase (towlower, towlower_l)
* towupper:: Translate wide characters to uppercase (towupper, towupper_l)
* towctrans:: Extensible wide-character translation (towctrans, towctrans_l)
* wctrans:: Compute wide-character translation type (wctrans, wctrans_l)
@end menu
@page
@include ctype/isalnum.def
@page
@include ctype/isalpha.def
@page
@include ctype/isascii.def
@page
@include ctype/isblank.def
@page
@include ctype/iscntrl.def
@page
@include ctype/isdigit.def
@page
@include ctype/islower.def
@page
@include ctype/isprint.def
@page
@include ctype/ispunct.def
@page
@include ctype/isspace.def
@page
@include ctype/isupper.def
@page
@include ctype/isxdigit.def
@page
@include ctype/toascii.def
@page
@include ctype/tolower.def
@page
@include ctype/toupper.def
@page
@include ctype/iswalnum.def
@page
@include ctype/iswalpha.def
@page
@include ctype/iswcntrl.def
@page
@include ctype/iswblank.def
@page
@include ctype/iswdigit.def
@page
@include ctype/iswgraph.def
@page
@include ctype/iswlower.def
@page
@include ctype/iswprint.def
@page
@include ctype/iswpunct.def
@page
@include ctype/iswspace.def
@page
@include ctype/iswupper.def
@page
@include ctype/iswxdigit.def
@page
@include ctype/iswctype.def
@page
@include ctype/wctype.def
@page
@include ctype/towlower.def
@page
@include ctype/towupper.def
@page
@include ctype/towctrans.def
@page
@include ctype/wctrans.def
|