File: isalpha.3

package info (click to toggle)
manpages-de 0.7-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,188 kB
  • ctags: 9
  • sloc: makefile: 83; perl: 61
file content (168 lines) | stat: -rw-r--r-- 4,674 bytes parent folder | download
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
.\" (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one
.\" 
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.  The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\" 
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\" License.
.\"
.\" Modified Sat Jul 24 19:10:00 1993 by Rik Faith (faith@cs.unc.edu)
.\" Modified Sun Aug 21 17:51:50 1994 by Rik Faith (faith@cs.unc.edu)
.\" Modified Sat Sep  2 21:52:01 1995 by Jim Van Zandt <jrv@vanzandt.mv.com>
.\" Modified Mon May 27 22:55:26 1996 by Martin Schulze (joey@linux.de)
.\" Translated into german by Martin Schulze (joey@finlandia.infodrom.north.de)
.\"
.TH ISALPHA 3 "27. Mai 1996" "GNU" "Bibliotheksfunktionen"
.SH BEZEICHNUNG
isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower, 
isprint, ispunct, isspace, isupper, isxdigit \- Zeichenklassifizierungs-Funktionen
.SH "ÜBERSICHT"
.nf
.B #include <ctype.h>
.sp
.BI "int isalnum (int " "c" ");"
.nl
.BI "int isalpha (int " "c" ");"
.nl
.BI "int isascii (int " "c" ");"
.nl
.BI "int isblank (int " "c" ");"
.nl
.BI "int iscntrl (int " "c" ");"
.nl
.BI "int isdigit (int " "c" ");"
.nl
.BI "int isgraph (int " "c" ");"
.nl
.BI "int islower (int " "c" ");"
.nl
.BI "int isprint (int " "c" ");"
.nl
.BI "int ispunct (int " "c" ");"
.nl
.BI "int isspace (int " "c" ");"
.nl
.BI "int isupper (int " "c" ");"
.nl
.BI "int isxdigit (int " "c" ");"
.fi
.SH BESCHREIBUNG
Diese Funktionen prüfen, ob das Zeichen
.IR c ,
das den Wert eines
.B unsigned char
haben oder
.B EOF 
sein muss, in eine Zeichenklasse entsprechend den aktuellen
Einstellungen für die Spracherweiterungen (locale)
passt.
.TP 
.B "isalnum()"
prüft auf alphanumerische Zeichen, es ist äquivalent zu
.BI "(isalpha(" c ") || isdigit(" c "))" \fR.
.TP
.B "isalpha()"
prüft auf Buchstaben, in der standard \fB"C"\fP Spracherweiterung ist es
äquivalent zu
.BI "(isupper(" c ") || islower(" c "))" \fR.
In anderen Spracherweiterungen können weitere Zeichen sein, für die
.B isalpha()
wahr ist - Zeichen, die weder Groß- noch Kleinbuchstaben sind.
.TP
.B "isascii()"
prüft, ob
.I c
ein 7-bit
.I unsigned char
ist, das dem ASCII Zeichensatz entspricht.  Diese Funktion ist eine
BSD-und auch SVID-Erweiterung.
.TP
.B "isblank()"
prüft auf Leerzeichen, also ein Space oder ein Tab.  Diese Funktion
ist eine GNU-Erweiterung.
.TP
.B "iscntrl()"
prüft auf Kontrollzeichen.
.TP
.B "isdigit()"
prüft auf Ziffern ab.
.TP
.B "isgraph()"
prüft auf druckbare Zeichen außer Leerzeichen ab.
.TP
.B "islower()"
prüft, ob
.I c
ein Kleinbuchstabe ist.
.TP
.B "isprint()"
prüft auf druckbare Zeichen inklusive Leerzeichen ab.
.TP
.B "ispunct()"
prüft auf druckbare Zeichen, das kein Leerzeichen und kein
alphanumerisches Zeichen ist.
.TP
.B "isspace()"
prüft auf Freizeichen.  In den
.B """C"""
and
.B """POSIX"""
Spracherweiterung sind dies: Leerzeichen, Seitenvorschub
.RB ( '\ef' ),
Zeilenumbruch
.RB ( '\en' ),
Carriage Return
.RB ( '\er' ),
Horizontaler Tabulator
.RB ( '\et' ),
und verticaler Tabulator
.RB ( '\ev' ).
.TP
.B "isupper()"
prüft auf Großbuchstaben ab.
.TP
.B "isxdigit()"
prüft, ob
.I c
eine hexadezimales Ziffer ist, also eine von
.nl
.BR "0 1 2 3 4 5 6 7 8 9 0 a b c d e f A B C D E F" .
.SH "RÜCKGABEWERT"
Wenn das Zeichen
.I c
in eine der entsprechenden Kategorien fällt, wird eine Zahl ungleich
null zurückgegeben, ansonsten null.
.SH "KONFORM ZU"
ANSI - C, BSD 4.3.
.B isascii()
ist sowohl eine BSD- als auch eine SVID-Erweiterung.
.B isblank()
ist eine GNU-Erweiterung.
.SH BUGS
Die Details, welche Zeichen zu welcher Klasse gehören, sind von der
aktuellen Spracherweiterung abhängig.  Zum Beispiel wird
.B isupper()
in der standard
.B "C"
Spracherweiterung kein Ä erkennen.
.SH "SIEHE AUCH"
.BR tolower (3),
.BR toupper (3),
.BR setlocale (3),
.BR ascii (7),
.BR locale (7).