version 1, including all changes.
.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
ISALPHA |
| |
|
2 |
!!!ISALPHA |
| |
|
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
RETURN VALUE |
| |
|
7 |
CONFORMING TO |
| |
|
8 |
NOTE |
| |
|
9 |
SEE ALSO |
| |
|
10 |
---- |
| |
|
11 |
!!NAME |
| |
|
12 |
|
| |
|
13 |
|
| |
|
14 |
isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit - character classification routines |
| |
|
15 |
!!SYNOPSIS |
| |
|
16 |
|
| |
|
17 |
|
| |
|
18 |
__#include |
| |
|
19 |
__ ''c''__); |
| |
|
20 |
int isalpha (int__ ''c''__); |
| |
|
21 |
int isascii (int__ ''c''__); |
| |
|
22 |
int isblank (int__ ''c''__); |
| |
|
23 |
int iscntrl (int__ ''c''__); |
| |
|
24 |
int isdigit (int__ ''c''__); |
| |
|
25 |
int isgraph (int__ ''c''__); |
| |
|
26 |
int islower (int__ ''c''__); |
| |
|
27 |
int isprint (int__ ''c''__); |
| |
|
28 |
int ispunct (int__ ''c''__); |
| |
|
29 |
int isspace (int__ ''c''__); |
| |
|
30 |
int isupper (int__ ''c''__); |
| |
|
31 |
int isxdigit (int__ ''c''__); |
| |
|
32 |
__ |
| |
|
33 |
!!DESCRIPTION |
| |
|
34 |
|
| |
|
35 |
|
| |
|
36 |
These functions check whether ''c'', which must have the |
| |
|
37 |
value of an __unsigned char__ or __EOF__, falls into a |
| |
|
38 |
certain character class according to the current |
| |
|
39 |
locale. |
| |
|
40 |
|
| |
|
41 |
|
| |
|
42 |
__isalnum()__ |
| |
|
43 |
|
| |
|
44 |
|
| |
|
45 |
checks for an alphanumeric character; it is equivalent to |
| |
|
46 |
__(isalpha(__''c''__) || |
| |
|
47 |
isdigit(__''c''__))__. |
| |
|
48 |
|
| |
|
49 |
|
| |
|
50 |
__isalpha()__ |
| |
|
51 |
|
| |
|
52 |
|
| |
|
53 |
checks for an alphabetic character; in the standard |
| |
|
54 |
____ locale, it is equivalent to |
| |
|
55 |
__(isupper(__''c''__) || |
| |
|
56 |
islower(__''c''__))__. In some locales, there may be |
| |
|
57 |
additional characters for which __isalpha()__ is |
| |
|
58 |
true--letters which are neither upper case nor lower |
| |
|
59 |
case. |
| |
|
60 |
|
| |
|
61 |
|
| |
|
62 |
__isascii()__ |
| |
|
63 |
|
| |
|
64 |
|
| |
|
65 |
checks whether ''c'' is a 7-bit ''unsigned char'' |
| |
|
66 |
value that fits into the ASCII character set. This function |
| |
|
67 |
is a BSD extension and is also an SVID |
| |
|
68 |
extension. |
| |
|
69 |
|
| |
|
70 |
|
| |
|
71 |
__isblank()__ |
| |
|
72 |
|
| |
|
73 |
|
| |
|
74 |
checks for a blank character; that is, a space or a tab. |
| |
|
75 |
This function is a GNU extension. |
| |
|
76 |
|
| |
|
77 |
|
| |
|
78 |
__iscntrl()__ |
| |
|
79 |
|
| |
|
80 |
|
| |
|
81 |
checks for a control character. |
| |
|
82 |
|
| |
|
83 |
|
| |
|
84 |
__isdigit()__ |
| |
|
85 |
|
| |
|
86 |
|
| |
|
87 |
checks for a digit (0 through 9). |
| |
|
88 |
|
| |
|
89 |
|
| |
|
90 |
__isgraph()__ |
| |
|
91 |
|
| |
|
92 |
|
| |
|
93 |
checks for any printable character except |
| |
|
94 |
space. |
| |
|
95 |
|
| |
|
96 |
|
| |
|
97 |
__islower()__ |
| |
|
98 |
|
| |
|
99 |
|
| |
|
100 |
checks for a lower-case character. |
| |
|
101 |
|
| |
|
102 |
|
| |
|
103 |
__isprint()__ |
| |
|
104 |
|
| |
|
105 |
|
| |
|
106 |
checks for any printable character including |
| |
|
107 |
space. |
| |
|
108 |
|
| |
|
109 |
|
| |
|
110 |
__ispunct()__ |
| |
|
111 |
|
| |
|
112 |
|
| |
|
113 |
checks for any printable character which is not a space or |
| |
|
114 |
an alphanumeric character. |
| |
|
115 |
|
| |
|
116 |
|
| |
|
117 |
__isspace()__ |
| |
|
118 |
|
| |
|
119 |
|
| |
|
120 |
checks for white-space characters. In the |
| |
|
121 |
____ and ____ locales, |
| |
|
122 |
these are: space, form-feed (__'f'__), newline |
| |
|
123 |
(__'n'__), carriage return (__'r'__), horizontal tab |
| |
|
124 |
(__'t'__), and vertical tab (__'v'__). |
| |
|
125 |
|
| |
|
126 |
|
| |
|
127 |
__isupper()__ |
| |
|
128 |
|
| |
|
129 |
|
| |
|
130 |
checks for an uppercase letter. |
| |
|
131 |
|
| |
|
132 |
|
| |
|
133 |
__isxdigit()__ |
| |
|
134 |
|
| |
|
135 |
|
| |
|
136 |
checks for a hexadecimal digits, i.e. one of __0 1 2 3 4 5 |
| |
|
137 |
6 7 8 9 a b c d e f A B C D E F__. |
| |
|
138 |
!!RETURN VALUE |
| |
|
139 |
|
| |
|
140 |
|
| |
|
141 |
The values returned are nonzero if the character ''c'' |
| |
|
142 |
falls into the tested class, and a zero value if |
| |
|
143 |
not. |
| |
|
144 |
!!CONFORMING TO |
| |
|
145 |
|
| |
|
146 |
|
| |
|
147 |
ANSI - C, BSD 4.3. __isascii()__ is a BSD extension and |
| |
|
148 |
is also an SVID extension. __isblank()__ is a GNU |
| |
|
149 |
extension. |
| |
|
150 |
!!NOTE |
| |
|
151 |
|
| |
|
152 |
|
| |
|
153 |
The details of what characters belong into which class |
| |
|
154 |
depend on the current locale. For example, __isupper()__ |
| |
|
155 |
will not recognize an A - umlaut as an uppercase letter in |
| |
|
156 |
the default __C__ locale. |
| |
|
157 |
!!SEE ALSO |
| |
|
158 |
|
| |
|
159 |
|
| |
|
160 |
tolower(3), toupper(3), setlocale(3), |
| |
|
161 |
ascii(7), locale(7) |
| |
|
162 |
---- |