1 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
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.
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.
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
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
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)
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
36 .TH ISALPHA 3 2010-09-20 "GNU" "Linux Programmer's Manual"
38 isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower,
39 isprint, ispunct, isspace, isupper, isxdigit \- 文字を分類する
44 .BI "int isalnum(int " "c" );
46 .BI "int isalpha(int " "c" );
48 .BI "int isascii(int " "c" );
50 .BI "int isblank(int " "c" );
52 .BI "int iscntrl(int " "c" );
54 .BI "int isdigit(int " "c" );
56 .BI "int isgraph(int " "c" );
58 .BI "int islower(int " "c" );
60 .BI "int isprint(int " "c" );
62 .BI "int ispunct(int " "c" );
64 .BI "int isspace(int " "c" );
66 .BI "int isupper(int " "c" );
68 .BI "int isxdigit(int " "c" );
73 .RB ( feature_test_macros (7)
80 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
85 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
86 _POSIX_C_SOURCE\ >=\ 200112L;
105 .BI "(isalpha(" c ") || isdigit(" c "))" \fR
109 アルファベットかどうか調べる。標準の \fB"C"\fP ロケールでは
110 .BI "(isupper(" c ") || islower(" c "))" \fR
111 と等価である。他のロケールでは、大文字でも小文字でもない他の文字でも
116 \fIc\fP が、ASCII文字セットに合致する 7ビットの
121 空白文字 (スペースかタブ) であるかを調べる。
130 表示可能な文字かどうかを調べる。スペースは含まれない。
136 表示可能な文字かどうかを調べる。スペースも含まれる。
139 表示可能な文字かどうかを調べる。スペースと英数字は含まれない。
146 ロケールでは、空白文字とは、スペース、フォームフィード
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 の文字であるかどうかを調べることと等価である。
169 が調べた文字の種類に合っていれば 0 以外を返す。
182 は POSIX.1-2001 と C99 7.4.1.3 に準拠している。
186 ローカライズされたアプリケーションでは、移植性を確保しつつ、
187 この関数を使用することはできない点に注意すること。
189 ある文字がどの種類に入るかということは、現在のロケールに依存する。
194 は A のウムラウトを認識できないので、それが大文字だということがわからない。