OSDN Git Service

(split) [JM:00125] Fix a translation mistake in isupper(3).
[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 .\" Japanese Version Copyright (c) 1997 Ueyama Rui
30 .\"         all rights reserved.
31 .\" Translated 1997-08-29, Ueyama Rui <rui@campus.or.jp>
32 .\" Updated 1999-07-16, Kentaro Shirakata <argrath@yo.rim.or.jp>
33 .\" Updated 2005-02-26, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
34 .\" Updated 2007-05-01, Akihiro MOTOKI, LDP v2.46
35 .\"
36 .TH ISALPHA 3 2010-09-20 "GNU" "Linux Programmer's Manual"
37 .SH Ì¾Á°
38 isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower,
39 isprint, ispunct, isspace, isupper, isxdigit \- Ê¸»ú¤òʬÎह¤ë
40 .SH ½ñ¼°
41 .nf
42 .B #include <ctype.h>
43 .sp
44 .BI "int isalnum(int " "c" );
45 .br
46 .BI "int isalpha(int " "c" );
47 .br
48 .BI "int isascii(int " "c" );
49 .br
50 .BI "int isblank(int " "c" );
51 .br
52 .BI "int iscntrl(int " "c" );
53 .br
54 .BI "int isdigit(int " "c" );
55 .br
56 .BI "int isgraph(int " "c" );
57 .br
58 .BI "int islower(int " "c" );
59 .br
60 .BI "int isprint(int " "c" );
61 .br
62 .BI "int ispunct(int " "c" );
63 .br
64 .BI "int isspace(int " "c" );
65 .br
66 .BI "int isupper(int " "c" );
67 .br
68 .BI "int isxdigit(int " "c" );
69 .fi
70 .sp
71 .in -4n
72 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
73 .RB ( feature_test_macros (7)
74 »²¾È):
75 .in
76 .sp
77 .ad l
78 .BR isascii ():
79 .RS 4
80 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
81 .br
82 .RE
83 .BR isblank ():
84 .RS 4
85 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
86 _POSIX_C_SOURCE\ >=\ 200112L;
87 .br
88 or
89 .I cc\ -std=c99
90 .RE
91 .ad
92 .SH ÀâÌÀ
93 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢¸½ºß¤Î¥í¥±¡¼¥ë¤Ë½¾¤Ã¤Æ
94 .I c
95 ¤òʬÎह¤ë¡£
96 .I c
97 ¤Ï
98 .I unsigned char
99 ¤«
100 .B EOF
101 ¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
102 .TP
103 .BR isalnum ()
104 ±Ñ»ú¤Þ¤¿¤Ï¿ô»ú¤Ç¤¢¤ë¤«¤òÄ´¤Ù¤ë¡£
105 .BI "(isalpha(" c ") || isdigit(" c "))" \fR
106 ¤ÈÅù²Á¤Ç¤¢¤ë¡£
107 .TP
108 .BR isalpha ()
109 ¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È¤«¤É¤¦¤«Ä´¤Ù¤ë¡£É¸½à¤Î \fB"C"\fP ¥í¥±¡¼¥ë¤Ç¤Ï
110 .BI "(isupper(" c ") || islower(" c "))" \fR
111 ¤ÈÅù²Á¤Ç¤¢¤ë¡£Â¾¤Î¥í¥±¡¼¥ë¤Ç¤Ï¡¢Âçʸ»ú¤Ç¤â¾®Ê¸»ú¤Ç¤â¤Ê¤¤Â¾¤Îʸ»ú¤Ç¤â
112 .BR isalpha ()
113 ¤¬ true ¤òÊÖ¤¹¤³¤È¤¬¤¢¤ë¡£
114 .TP
115 .BR isascii ()
116 \fIc\fP ¤¬¡¢ASCIIʸ»ú¥»¥Ã¥È¤Ë¹çÃפ¹¤ë 7¥Ó¥Ã¥È¤Î
117 .I unsigned char
118 ¤Ç¤¢¤ë¤«¤òÄ´¤Ù¤ë¡£
119 .TP
120 .BR isblank ()
121 ¶õÇòʸ»ú (¥¹¥Ú¡¼¥¹¤«¥¿¥Ö) ¤Ç¤¢¤ë¤«¤òÄ´¤Ù¤ë¡£
122 .TP
123 .BR iscntrl ()
124 À©¸æʸ»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£
125 .TP
126 .BR isdigit ()
127 ¿ô»ú (0¡Á9) ¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£
128 .TP
129 .BR isgraph ()
130 ɽ¼¨²Äǽ¤Êʸ»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£¥¹¥Ú¡¼¥¹¤Ï´Þ¤Þ¤ì¤Ê¤¤¡£
131 .TP
132 .BR islower ()
133 ¾®Ê¸»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£
134 .TP
135 .BR isprint ()
136 ɽ¼¨²Äǽ¤Êʸ»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£¥¹¥Ú¡¼¥¹¤â´Þ¤Þ¤ì¤ë¡£
137 .TP
138 .BR ispunct ()
139 ɽ¼¨²Äǽ¤Êʸ»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£¥¹¥Ú¡¼¥¹¤È±Ñ¿ô»ú¤Ï´Þ¤Þ¤ì¤Ê¤¤¡£
140 .TP
141 .BR isspace ()
142 ¶õÇòʸ»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£
143 .B """C"""
144 ¥í¥±¡¼¥ë¤«
145 .B """POSIX"""
146 ¥í¥±¡¼¥ë¤Ç¤Ï¡¢¶õÇòʸ»ú¤È¤Ï¡¢¥¹¥Ú¡¼¥¹¡¢¥Õ¥©¡¼¥à¥Õ¥£¡¼¥É
147 .RB ( \(aq\ef\(aq )
148 ¡¢²þ¹Ô(newline)
149 .RB ( \(aq\en\(aq )
150 ¡¢Éüµ¢(carriage return)
151 .RB ( \(aq\er\(aq )
152 ¡¢¿åÊ¿¥¿¥Ö
153 .RB ( \(aq\et\(aq )
154 ¡¢¿âľ¥¿¥Ö
155 .RB ( \(aq\ev\(aq )
156 ¤Ç¤¢¤ë¡£
157 .TP
158 .BR isupper ()
159 Âçʸ»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£
160 .TP
161 .BR isxdigit ()
162 16¿Ê¿ô¤Ç¤Î¿ô»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£
163 .br
164 .B "0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F"
165 ¤Îʸ»ú¤Ç¤¢¤ë¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¤³¤È¤ÈÅù²Á¤Ç¤¢¤ë¡£
166 .SH ÊÖ¤êÃÍ
167 ʸ»ú
168 .I c
169 ¤¬Ä´¤Ù¤¿Ê¸»ú¤Î¼ïÎà¤Ë¹ç¤Ã¤Æ¤¤¤ì¤Ð 0 °Ê³°¤òÊÖ¤¹¡£
170 ¤½¤¦¤Ç¤Ê¤±¤ì¤Ð 0 ¤òÊÖ¤¹¡£
171 .SH ½àµò
172 C99, 4.3BSD.
173 C89 ¤Ç¤Ï¡¢¤³¤ì¤é¤Î´Ø¿ô¤Î¤¦¤Á
174 .BR isascii ()
175 ¤È
176 .BR isblank ()
177 °Ê³°¤Î
178 ¤¹¤Ù¤Æ¤¬µ¬Äꤵ¤ì¤Æ¤¤¤ë¡£
179 .BR isascii ()
180 ¤Ï BSD ¤ä SVr4 ¤Î³ÈÄ¥¤Ç¤¢¤ë¡£
181 .BR isblank ()
182 ¤Ï POSIX.1-2001 ¤È C99 7.4.1.3 ¤Ë½àµò¤·¤Æ¤¤¤ë¡£
183 POSIX.1-2008 ¤Ï¡¢
184 .BR isascii ()
185 ¤òÇÑ»ßͽÄê¤È¤·¤Æ¤¤¤ë¡£
186 ¥í¡¼¥«¥é¥¤¥º¤µ¤ì¤¿¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¤Ï¡¢°Ü¿¢À­¤ò³ÎÊݤ·¤Ä¤Ä¡¢
187 ¤³¤Î´Ø¿ô¤ò»ÈÍѤ¹¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤ÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£
188 .SH Ãí°Õ
189 ¤¢¤ëʸ»ú¤¬¤É¤Î¼ïÎà¤ËÆþ¤ë¤«¤È¤¤¤¦¤³¤È¤Ï¡¢¸½ºß¤Î¥í¥±¡¼¥ë¤Ë°Í¸¤¹¤ë¡£
190 ¤¿¤È¤¨¤Ð¡¢¥Ç¥Õ¥©¥ë¥È¤Î
191 .B "C"
192 ¥í¥±¡¼¥ë¤Ç¤Ï
193 .BR isupper ()
194 ¤Ï A ¤Î¥¦¥à¥é¥¦¥È¤òǧ¼±¤Ç¤­¤Ê¤¤¤Î¤Ç¡¢¤½¤ì¤¬Âçʸ»ú¤À¤È¤¤¤¦¤³¤È¤¬¤ï¤«¤é¤Ê¤¤¡£
195 .SH ´ØÏ¢¹àÌÜ
196 .BR iswalnum (3),
197 .BR iswalpha (3),
198 .BR iswblank (3),
199 .BR iswcntrl (3),
200 .BR iswdigit (3),
201 .BR iswgraph (3),
202 .BR iswlower (3),
203 .BR iswprint (3),
204 .BR iswpunct (3),
205 .BR iswspace (3),
206 .BR iswupper (3),
207 .BR iswxdigit (3),
208 .BR setlocale (3),
209 .BR toascii (3),
210 .BR tolower (3),
211 .BR toupper (3),
212 .BR ascii (7),
213 .BR locale (7)