OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / man3 / isalpha.3
1 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\" License.
23 .\"
24 .\" Modified Sat Jul 24 19:10:00 1993 by Rik Faith (faith@cs.unc.edu)
25 .\" Modified Sun Aug 21 17:51:50 1994 by Rik Faith (faith@cs.unc.edu)
26 .\" Modified Sat Sep  2 21:52:01 1995 by Jim Van Zandt <jrv@vanzandt.mv.com>
27 .\" Modified Mon May 27 22:55:26 1996 by Martin Schulze (joey@linux.de)
28 .\"
29 .\"*******************************************************************
30 .\"
31 .\" This file was generated with po4a. Translate the source file.
32 .\"
33 .\"*******************************************************************
34 .TH ISALPHA 3 2010\-09\-20 GNU "Linux Programmer's Manual"
35 .SH 名前
36 isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower,
37 isprint, ispunct, isspace, isupper, isxdigit \- 文字を分類する
38 .SH 書式
39 .nf
40 \fB#include <ctype.h>\fP
41 .sp
42 \fBint isalnum(int \fP\fIc\fP\fB);\fP
43 .br
44 \fBint isalpha(int \fP\fIc\fP\fB);\fP
45 .br
46 \fBint isascii(int \fP\fIc\fP\fB);\fP
47 .br
48 \fBint isblank(int \fP\fIc\fP\fB);\fP
49 .br
50 \fBint iscntrl(int \fP\fIc\fP\fB);\fP
51 .br
52 \fBint isdigit(int \fP\fIc\fP\fB);\fP
53 .br
54 \fBint isgraph(int \fP\fIc\fP\fB);\fP
55 .br
56 \fBint islower(int \fP\fIc\fP\fB);\fP
57 .br
58 \fBint isprint(int \fP\fIc\fP\fB);\fP
59 .br
60 \fBint ispunct(int \fP\fIc\fP\fB);\fP
61 .br
62 \fBint isspace(int \fP\fIc\fP\fB);\fP
63 .br
64 \fBint isupper(int \fP\fIc\fP\fB);\fP
65 .br
66 \fBint isxdigit(int \fP\fIc\fP\fB);\fP
67 .fi
68 .sp
69 .in -4n
70 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
71 .in
72 .sp
73 .ad l
74 \fBisascii\fP():
75 .RS 4
76 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
77 .br
78 .RE
79 \fBisblank\fP():
80 .RS 4
81 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L;
82 .br
83 or \fIcc\ \-std=c99\fP
84 .RE
85 .ad
86 .SH 説明
87 これらの関数は、現在のロケールに従って \fIc\fP を分類する。 \fIc\fP は \fIunsigned char\fP か \fBEOF\fP でなければならない。
88 .TP 
89 \fBisalnum\fP()
90 英字または数字であるかを調べる。 \fB(isalpha(\fP\fIc\fP\fB) || isdigit(\fP\fIc\fP\fB))\fP と等価である。
91 .TP 
92 \fBisalpha\fP()
93 アルファベットかどうか調べる。標準の \fB"C"\fP ロケールでは \fB(isupper(\fP\fIc\fP\fB) || islower(\fP\fIc\fP\fB))\fP
94 と等価である。他のロケールでは、大文字でも小文字でもない他の文字でも \fBisalpha\fP()  が true を返すことがある。
95 .TP 
96 \fBisascii\fP()
97 \fIc\fP が、ASCII文字セットに合致する 7ビットの \fIunsigned char\fP であるかを調べる。
98 .TP 
99 \fBisblank\fP()
100 空白文字 (スペースかタブ) であるかを調べる。
101 .TP 
102 \fBiscntrl\fP()
103 制御文字かどうかを調べる。
104 .TP 
105 \fBisdigit\fP()
106 数字 (0〜9) かどうかを調べる。
107 .TP 
108 \fBisgraph\fP()
109 表示可能な文字かどうかを調べる。スペースは含まれない。
110 .TP 
111 \fBislower\fP()
112 小文字かどうかを調べる。
113 .TP 
114 \fBisprint\fP()
115 表示可能な文字かどうかを調べる。スペースも含まれる。
116 .TP 
117 \fBispunct\fP()
118 表示可能な文字かどうかを調べる。スペースと英数字は含まれない。
119 .TP 
120 \fBisspace\fP()
121 空白文字かどうかを調べる。 \fB"C"\fP ロケールか \fB"POSIX"\fP ロケールでは、空白文字とは、スペース、フォームフィード
122 (\fB\(aq\ef\(aq\fP)  、改行(newline)  (\fB\(aq\en\(aq\fP)  、復帰(carriage return)
123 (\fB\(aq\er\(aq\fP)  、水平タブ (\fB\(aq\et\(aq\fP)  、垂直タブ (\fB\(aq\ev\(aq\fP)  である。
124 .TP 
125 \fBisupper\fP()
126 大文字かどうかを調べる。
127 .TP 
128 \fBisxdigit\fP()
129 16進数での数字かどうかを調べる。
130 .br
131 \fB0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F\fP の文字であるかどうかを調べることと等価である。
132 .SH 返り値
133 文字 \fIc\fP が調べた文字の種類に合っていれば 0 以外を返す。 そうでなければ 0 を返す。
134 .SH 準拠
135 C99, 4.3BSD.  C89 では、これらの関数のうち \fBisascii\fP()  と \fBisblank\fP()  以外の
136 すべてが規定されている。 \fBisascii\fP()  は BSD や SVr4 の拡張である。 \fBisblank\fP()  は POSIX.1\-2001
137 と C99 7.4.1.3 に準拠している。 POSIX.1\-2008 は、 \fBisascii\fP()  を廃止予定としている。
138 ローカライズされたアプリケーションでは、移植性を確保しつつ、 この関数を使用することはできない点に注意すること。
139 .SH 注意
140 ある文字がどの種類に入るかということは、現在のロケールに依存する。 たとえば、デフォルトの \fBC\fP ロケールでは \fBisupper\fP()  は A
141 のウムラウトを認識できないので、それが大文字だということがわからない。
142 .SH 関連項目
143 \fBiswalnum\fP(3), \fBiswalpha\fP(3), \fBiswblank\fP(3), \fBiswcntrl\fP(3),
144 \fBiswdigit\fP(3), \fBiswgraph\fP(3), \fBiswlower\fP(3), \fBiswprint\fP(3),
145 \fBiswpunct\fP(3), \fBiswspace\fP(3), \fBiswupper\fP(3), \fBiswxdigit\fP(3),
146 \fBsetlocale\fP(3), \fBtoascii\fP(3), \fBtolower\fP(3), \fBtoupper\fP(3), \fBascii\fP(7),
147 \fBlocale\fP(7)