OSDN Git Service

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