OSDN Git Service

fcb99762ce2a7be66eac7f60cd81c1867b6c4f67
[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 .\"
36 .\" Japanese Version Copyright (c) 1997 Ueyama Rui
37 .\"         all rights reserved.
38 .\" Translated 1997-08-29, Ueyama Rui <rui@campus.or.jp>
39 .\" Updated 1999-07-16, Kentaro Shirakata <argrath@yo.rim.or.jp>
40 .\" Updated 2005-02-26, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
41 .\" Updated 2007-05-01, Akihiro MOTOKI, LDP v2.46
42 .\"
43 .TH ISALPHA 3 2010\-09\-20 GNU "Linux Programmer's Manual"
44 .SH 名前
45 isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower,
46 isprint, ispunct, isspace, isupper, isxdigit \- 文字を分類する
47 .SH 書式
48 .nf
49 \fB#include <ctype.h>\fP
50 .sp
51 \fBint isalnum(int \fP\fIc\fP\fB);\fP
52 .br
53 \fBint isalpha(int \fP\fIc\fP\fB);\fP
54 .br
55 \fBint isascii(int \fP\fIc\fP\fB);\fP
56 .br
57 \fBint isblank(int \fP\fIc\fP\fB);\fP
58 .br
59 \fBint iscntrl(int \fP\fIc\fP\fB);\fP
60 .br
61 \fBint isdigit(int \fP\fIc\fP\fB);\fP
62 .br
63 \fBint isgraph(int \fP\fIc\fP\fB);\fP
64 .br
65 \fBint islower(int \fP\fIc\fP\fB);\fP
66 .br
67 \fBint isprint(int \fP\fIc\fP\fB);\fP
68 .br
69 \fBint ispunct(int \fP\fIc\fP\fB);\fP
70 .br
71 \fBint isspace(int \fP\fIc\fP\fB);\fP
72 .br
73 \fBint isupper(int \fP\fIc\fP\fB);\fP
74 .br
75 \fBint isxdigit(int \fP\fIc\fP\fB);\fP
76 .fi
77 .sp
78 .in -4n
79 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
80 .in
81 .sp
82 .ad l
83 \fBisascii\fP():
84 .RS 4
85 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
86 .br
87 .RE
88 \fBisblank\fP():
89 .RS 4
90 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L;
91 .br
92 or \fIcc\ \-std=c99\fP
93 .RE
94 .ad
95 .SH 説明
96 これらの関数は、現在のロケールに従って \fIc\fP を分類する。 \fIc\fP は \fIunsigned char\fP か \fBEOF\fP でなければならない。
97 .TP 
98 \fBisalnum\fP()
99 英字または数字であるかを調べる。 \fB(isalpha(\fP\fIc\fP\fB) || isdigit(\fP\fIc\fP\fB))\fP と等価である。
100 .TP 
101 \fBisalpha\fP()
102 アルファベットかどうか調べる。標準の \fB"C"\fP ロケールでは \fB(isupper(\fP\fIc\fP\fB) || islower(\fP\fIc\fP\fB))\fP
103 と等価である。他のロケールでは、大文字でも小文字でもない他の文字でも \fBisalpha\fP()  が true を返すことがある。
104 .TP 
105 \fBisascii\fP()
106 \fIc\fP が、ASCII文字セットに合致する 7ビットの \fIunsigned char\fP であるかを調べる。
107 .TP 
108 \fBisblank\fP()
109 空白文字 (スペースかタブ) であるかを調べる。
110 .TP 
111 \fBiscntrl\fP()
112 制御文字かどうかを調べる。
113 .TP 
114 \fBisdigit\fP()
115 数字 (0〜9) かどうかを調べる。
116 .TP 
117 \fBisgraph\fP()
118 表示可能な文字かどうかを調べる。スペースは含まれない。
119 .TP 
120 \fBislower\fP()
121 小文字かどうかを調べる。
122 .TP 
123 \fBisprint\fP()
124 表示可能な文字かどうかを調べる。スペースも含まれる。
125 .TP 
126 \fBispunct\fP()
127 表示可能な文字かどうかを調べる。スペースと英数字は含まれない。
128 .TP 
129 \fBisspace\fP()
130 空白文字かどうかを調べる。 \fB"C"\fP ロケールか \fB"POSIX"\fP ロケールでは、空白文字とは、スペース、フォームフィード
131 (\fB\(aq\ef\(aq\fP)  、改行(newline)  (\fB\(aq\en\(aq\fP)  、復帰(carriage return)
132 (\fB\(aq\er\(aq\fP)  、水平タブ (\fB\(aq\et\(aq\fP)  、垂直タブ (\fB\(aq\ev\(aq\fP)  である。
133 .TP 
134 \fBisupper\fP()
135 大文字かどうかを調べる。
136 .TP 
137 \fBisxdigit\fP()
138 16進数での数字かどうかを調べる。
139 .br
140 \fB0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F\fP の文字であるかどうかを調べることと等価である。
141 .SH 返り値
142 文字 \fIc\fP が調べた文字の種類に合っていれば 0 以外を返す。 そうでなければ 0 を返す。
143 .SH 準拠
144 C99, 4.3BSD.  C89 では、これらの関数のうち \fBisascii\fP()  と \fBisblank\fP()  以外の
145 すべてが規定されている。 \fBisascii\fP()  は BSD や SVr4 の拡張である。 \fBisblank\fP()  は POSIX.1\-2001
146 と C99 7.4.1.3 に準拠している。 POSIX.1\-2008 は、 \fBisascii\fP()  を廃止予定としている。
147 ローカライズされたアプリケーションでは、移植性を確保しつつ、 この関数を使用することはできない点に注意すること。
148 .SH 注意
149 ある文字がどの種類に入るかということは、現在のロケールに依存する。 たとえば、デフォルトの \fBC\fP ロケールでは \fBisupper\fP()  は A
150 のウムラウトを認識できないので、それが大文字だということがわからない。
151 .SH 関連項目
152 \fBiswalnum\fP(3), \fBiswalpha\fP(3), \fBiswblank\fP(3), \fBiswcntrl\fP(3),
153 \fBiswdigit\fP(3), \fBiswgraph\fP(3), \fBiswlower\fP(3), \fBiswprint\fP(3),
154 \fBiswpunct\fP(3), \fBiswspace\fP(3), \fBiswupper\fP(3), \fBiswxdigit\fP(3),
155 \fBsetlocale\fP(3), \fBtoascii\fP(3), \fBtolower\fP(3), \fBtoupper\fP(3), \fBascii\fP(7),
156 \fBlocale\fP(7)
157 .SH この文書について
158 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
159 である。プロジェクトの説明とバグ報告に関する情報は
160 http://www.kernel.org/doc/man\-pages/ に書かれている。