OSDN Git Service

(split) LDP: draft snapshots from latest ja.po(s).
[linuxjm/LDP_man-pages.git] / draft / man3 / isalpha.3
index e9b5094..7aefd1c 100644 (file)
 .\" Modified Sat Sep  2 21:52:01 1995 by Jim Van Zandt <jrv@vanzandt.mv.com>
 .\" Modified Mon May 27 22:55:26 1996 by Martin Schulze (joey@linux.de)
 .\"
-.\" Japanese Version Copyright (c) 1997 Ueyama Rui
-.\"         all rights reserved.
-.\" Translated 1997-08-29, Ueyama Rui <rui@campus.or.jp>
-.\" Updated 1999-07-16, Kentaro Shirakata <argrath@yo.rim.or.jp>
-.\" Updated 2005-02-26, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
-.\" Updated 2007-05-01, Akihiro MOTOKI, LDP v2.46
+.\"*******************************************************************
 .\"
-.TH ISALPHA 3 2009-03-15 "GNU" "Linux Programmer's Manual"
-.\"O .SH NAME
-.SH Ì¾Á°
-.\"O isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower,
-.\"O isprint, ispunct, isspace, isupper, isxdigit \- character
-.\"O classification routines
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH ISALPHA 3 2010\-09\-20 GNU "Linux Programmer's Manual"
+.SH 名前
 isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower,
-isprint, ispunct, isspace, isupper, isxdigit \- Ê¸»ú¤òʬÎह¤ë
-.\"O .SH SYNOPSIS
-.SH ½ñ¼°
+isprint, ispunct, isspace, isupper, isxdigit \- 文字を分類する
+.SH 書式
 .nf
-.B #include <ctype.h>
+\fB#include <ctype.h>\fP
 .sp
-.BI "int isalnum(int " "c" );
+\fBint isalnum(int \fP\fIc\fP\fB);\fP
 .br
-.BI "int isalpha(int " "c" );
+\fBint isalpha(int \fP\fIc\fP\fB);\fP
 .br
-.BI "int isascii(int " "c" );
+\fBint isascii(int \fP\fIc\fP\fB);\fP
 .br
-.BI "int isblank(int " "c" );
+\fBint isblank(int \fP\fIc\fP\fB);\fP
 .br
-.BI "int iscntrl(int " "c" );
+\fBint iscntrl(int \fP\fIc\fP\fB);\fP
 .br
-.BI "int isdigit(int " "c" );
+\fBint isdigit(int \fP\fIc\fP\fB);\fP
 .br
-.BI "int isgraph(int " "c" );
+\fBint isgraph(int \fP\fIc\fP\fB);\fP
 .br
-.BI "int islower(int " "c" );
+\fBint islower(int \fP\fIc\fP\fB);\fP
 .br
-.BI "int isprint(int " "c" );
+\fBint isprint(int \fP\fIc\fP\fB);\fP
 .br
-.BI "int ispunct(int " "c" );
+\fBint ispunct(int \fP\fIc\fP\fB);\fP
 .br
-.BI "int isspace(int " "c" );
+\fBint isspace(int \fP\fIc\fP\fB);\fP
 .br
-.BI "int isupper(int " "c" );
+\fBint isupper(int \fP\fIc\fP\fB);\fP
 .br
-.BI "int isxdigit(int " "c" );
+\fBint isxdigit(int \fP\fIc\fP\fB);\fP
 .fi
 .sp
 .in -4n
-.\"O Feature Test Macro Requirements for glibc (see
-.\"O .BR feature_test_macros (7)):
-glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
-.RB ( feature_test_macros (7)
-»²¾È):
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
 .in
 .sp
 .ad l
-.BR isascii ():
+\fBisascii\fP():
+.RS 4
 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
 .br
-.BR isblank ():
-_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
-.I cc\ -std=c99
-.ad b
-.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
-.\"O These functions check whether
-.\"O .IR c ,
-.\"O which must have the value of an
-.\"O .I unsigned char
-.\"O or
-.\"O .BR EOF ,
-.\"O falls into a certain character class according to the current locale.
-¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢¸½ºß¤Î¥í¥±¡¼¥ë¤Ë½¾¤Ã¤Æ
-.I c
-¤òʬÎह¤ë¡£
-.I c
-¤Ï
-.I unsigned char
-¤«
-.B EOF
-¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
-.TP
-.BR isalnum ()
-.\"O checks for an alphanumeric character; it is equivalent to
-.\"O .BI "(isalpha(" c ") || isdigit(" c "))" \fR.
-±Ñ»ú¤Þ¤¿¤Ï¿ô»ú¤Ç¤¢¤ë¤«¤òÄ´¤Ù¤ë¡£
-.BI "(isalpha(" c ") || isdigit(" c "))" \fR
-¤ÈÅù²Á¤Ç¤¢¤ë¡£
-.TP
-.BR isalpha ()
-.\"O checks for an alphabetic character; in the standard \fB"C"\fP
-.\"O locale, it is equivalent to
-.\"O .BI "(isupper(" c ") || islower(" c "))" \fR.
-.\"O In some locales, there may be additional characters for which
-.\"O .BR isalpha ()
-.\"O is true\-\-letters which are neither upper case nor lower
-.\"O case.
-¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È¤«¤É¤¦¤«Ä´¤Ù¤ë¡£É¸½à¤Î \fB"C"\fP ¥í¥±¡¼¥ë¤Ç¤Ï
-.BI "(isupper(" c ") || islower(" c "))" \fR
-¤ÈÅù²Á¤Ç¤¢¤ë¡£Â¾¤Î¥í¥±¡¼¥ë¤Ç¤Ï¡¢Âçʸ»ú¤Ç¤â¾®Ê¸»ú¤Ç¤â¤Ê¤¤Â¾¤Îʸ»ú¤Ç¤â
-.BR isalpha ()
-¤¬ true ¤òÊÖ¤¹¤³¤È¤¬¤¢¤ë¡£
-.TP
-.BR isascii ()
-.\"O checks whether \fIc\fP is a 7-bit
-.\"O .I unsigned char
-.\"O value that fits into
-.\"O the ASCII character set.
-\fIc\fP ¤¬¡¢ASCIIʸ»ú¥»¥Ã¥È¤Ë¹çÃפ¹¤ë 7¥Ó¥Ã¥È¤Î
-.I unsigned char
-¤Ç¤¢¤ë¤«¤òÄ´¤Ù¤ë¡£
-.TP
-.BR isblank ()
-.\"O checks for a blank character; that is, a space or a tab.
-¶õÇòʸ»ú (¥¹¥Ú¡¼¥¹¤«¥¿¥Ö) ¤Ç¤¢¤ë¤«¤òÄ´¤Ù¤ë¡£
-.TP
-.BR iscntrl ()
-.\"O checks for a control character.
-À©¸æʸ»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£
-.TP
-.BR isdigit ()
-.\"O checks for a digit (0 through 9).
-¿ô»ú (0¡Á9) ¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£
-.TP
-.BR isgraph ()
-.\"O checks for any printable character except space.
-ɽ¼¨²Äǽ¤Êʸ»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£¥¹¥Ú¡¼¥¹¤Ï´Þ¤Þ¤ì¤Ê¤¤¡£
-.TP
-.BR islower ()
-.\"O checks for a lower-case character.
-¾®Ê¸»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£
-.TP
-.BR isprint ()
-.\"O checks for any printable character including space.
-ɽ¼¨²Äǽ¤Êʸ»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£¥¹¥Ú¡¼¥¹¤â´Þ¤Þ¤ì¤ë¡£
-.TP
-.BR ispunct ()
-.\"O checks for any printable character which is not a space or an
-.\"O alphanumeric character.
-ɽ¼¨²Äǽ¤Êʸ»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£¥¹¥Ú¡¼¥¹¤È±Ñ¿ô»ú¤Ï´Þ¤Þ¤ì¤Ê¤¤¡£
-.TP
-.BR isspace ()
-.\"O checks for white-space characters.
-.\"O In the
-.\"O .B """C"""
-.\"O and
-.\"O .B """POSIX"""
-.\"O locales, these are: space, form-feed
-.\"O .RB ( \(aq\ef\(aq ),
-.\"O newline
-.\"O .RB ( \(aq\en\(aq ),
-.\"O carriage return
-.\"O .RB ( \(aq\er\(aq ),
-.\"O horizontal tab
-.\"O .RB ( \(aq\et\(aq ),
-.\"O and vertical tab
-.\"O .RB ( \(aq\ev\(aq ).
-.\"O .TP
-.\"O .BR isupper ()
-.\"O checks for an uppercase letter.
-¶õÇòʸ»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£
-.B """C"""
-¥í¥±¡¼¥ë¤«
-.B """POSIX"""
-¥í¥±¡¼¥ë¤Ç¤Ï¡¢¶õÇòʸ»ú¤È¤Ï¡¢¥¹¥Ú¡¼¥¹¡¢¥Õ¥©¡¼¥à¥Õ¥£¡¼¥É
-.RB ( \(aq\ef\(aq )
-¡¢²þ¹Ô(newline)
-.RB ( \(aq\en\(aq )
-¡¢Éüµ¢(carriage return)
-.RB ( \(aq\er\(aq )
-¡¢¿åÊ¿¥¿¥Ö
-.RB ( \(aq\et\(aq )
-¡¢¿âľ¥¿¥Ö
-.RB ( \(aq\ev\(aq )
-¤Ç¤¢¤ë¡£
-.TP
-.BR isupper ()
-.\"O checks for an uppercase letter.
-¾®Ê¸»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£
-.TP
-.BR isxdigit ()
-.\"O checks for a hexadecimal digits, that is, one of
-.\"O .br
-.\"O .BR "0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F" .
-16¿Ê¿ô¤Ç¤Î¿ô»ú¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£
+.RE
+\fBisblank\fP():
+.RS 4
+_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L;
+.br
+or \fIcc\ \-std=c99\fP
+.RE
+.ad
+.SH 説明
+これらの関数は、現在のロケールに従って \fIc\fP を分類する。 \fIc\fP は \fIunsigned char\fP か \fBEOF\fP でなければならない。
+.TP 
+\fBisalnum\fP()
+英字または数字であるかを調べる。 \fB(isalpha(\fP\fIc\fP\fB) || isdigit(\fP\fIc\fP\fB))\fP と等価である。
+.TP 
+\fBisalpha\fP()
+アルファベットかどうか調べる。標準の \fB"C"\fP ロケールでは \fB(isupper(\fP\fIc\fP\fB) || islower(\fP\fIc\fP\fB))\fP
+と等価である。他のロケールでは、大文字でも小文字でもない他の文字でも \fBisalpha\fP()  が true を返すことがある。
+.TP 
+\fBisascii\fP()
+\fIc\fP が、ASCII文字セットに合致する 7ビットの \fIunsigned char\fP であるかを調べる。
+.TP 
+\fBisblank\fP()
+空白文字 (スペースかタブ) であるかを調べる。
+.TP 
+\fBiscntrl\fP()
+制御文字かどうかを調べる。
+.TP 
+\fBisdigit\fP()
+数字 (0〜9) かどうかを調べる。
+.TP 
+\fBisgraph\fP()
+表示可能な文字かどうかを調べる。スペースは含まれない。
+.TP 
+\fBislower\fP()
+小文字かどうかを調べる。
+.TP 
+\fBisprint\fP()
+表示可能な文字かどうかを調べる。スペースも含まれる。
+.TP 
+\fBispunct\fP()
+表示可能な文字かどうかを調べる。スペースと英数字は含まれない。
+.TP 
+\fBisspace\fP()
+空白文字かどうかを調べる。 \fB"C"\fP ロケールか \fB"POSIX"\fP ロケールでは、空白文字とは、スペース、フォームフィード
+(\fB\(aq\ef\(aq\fP)  、改行(newline)  (\fB\(aq\en\(aq\fP)  、復帰(carriage return)
+(\fB\(aq\er\(aq\fP)  、水平タブ (\fB\(aq\et\(aq\fP)  、垂直タブ (\fB\(aq\ev\(aq\fP)  である。
+.TP 
+\fBisupper\fP()
+大文字かどうかを調べる。
+.TP 
+\fBisxdigit\fP()
+16進数での数字かどうかを調べる。
 .br
-.B "0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F"
-¤Îʸ»ú¤Ç¤¢¤ë¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¤³¤È¤ÈÅù²Á¤Ç¤¢¤ë¡£
-.\"O .SH "RETURN VALUE"
-.SH ÊÖ¤êÃÍ
-.\"O The values returned are nonzero if the character
-.\"O .I c
-.\"O falls into the tested class, and a zero value
-.\"O if not.
-ʸ»ú
-.I c
-¤¬Ä´¤Ù¤¿Ê¸»ú¤Î¼ïÎà¤Ë¹ç¤Ã¤Æ¤¤¤ì¤Ð 0 °Ê³°¤òÊÖ¤¹¡£
-¤½¤¦¤Ç¤Ê¤±¤ì¤Ð 0 ¤òÊÖ¤¹¡£
-.\"O .SH "CONFORMING TO"
-.SH ½àµò
-.\"O C99, 4.3BSD.
-.\"O C89 specifies all of these functions except
-.\"O .BR isascii ()
-.\"O and
-.\"O .BR isblank ().
-.\"O .BR isascii ()
-.\"O is a BSD extension
-.\"O and is also an SVr4 extension.
-.\"O .BR isblank ()
-.\"O conforms to POSIX.1-2001 and C99 7.4.1.3.
-C99, 4.3BSD.
-C89 ¤Ç¤Ï¡¢¤³¤ì¤é¤Î´Ø¿ô¤Î¤¦¤Á
-.BR isascii ()
-¤È
-.BR isblank ()
-°Ê³°¤Î
-¤¹¤Ù¤Æ¤¬µ¬Äꤵ¤ì¤Æ¤¤¤ë¡£
-.BR isascii ()
-¤Ï BSD ¤ä SVr4 ¤Î³ÈÄ¥¤Ç¤¢¤ë¡£
-.BR isblank ()
-¤Ï POSIX.1-2001 ¤È C99 7.4.1.3 ¤Ë½àµò¤·¤Æ¤¤¤ë¡£
-.\"O POSIX.1-2008 marks
-.\"O .BR isascii ()
-.\"O as obsolete,
-.\"O noting that it cannot be used portably in a localized application.
-POSIX.1-2008 ¤Ï¡¢
-.BR isascii ()
-¤òÇÑ»ßͽÄê¤È¤·¤Æ¤¤¤ë¡£
-¥í¡¼¥«¥é¥¤¥º¤µ¤ì¤¿¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¤Ï¡¢°Ü¿¢À­¤ò³ÎÊݤ·¤Ä¤Ä¡¢
-¤³¤Î´Ø¿ô¤ò»ÈÍѤ¹¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤ÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£
-.\"O .SH NOTES
-.SH Ãí°Õ
-.\"O The details of what characters belong into which class depend on the current
-.\"O locale.
-.\"O For example,
-.\"O .BR isupper ()
-.\"O will not recognize an A-umlaut (\(:A) as an uppercase letter in the default
-.\"O .B "C"
-.\"O locale.
-¤¢¤ëʸ»ú¤¬¤É¤Î¼ïÎà¤ËÆþ¤ë¤«¤È¤¤¤¦¤³¤È¤Ï¡¢¸½ºß¤Î¥í¥±¡¼¥ë¤Ë°Í¸¤¹¤ë¡£
-¤¿¤È¤¨¤Ð¡¢¥Ç¥Õ¥©¥ë¥È¤Î
-.B "C"
-¥í¥±¡¼¥ë¤Ç¤Ï
-.BR isupper ()
-¤Ï A ¤Î¥¦¥à¥é¥¦¥È¤òǧ¼±¤Ç¤­¤Ê¤¤¤Î¤Ç¡¢¤½¤ì¤¬Âçʸ»ú¤À¤È¤¤¤¦¤³¤È¤¬¤ï¤«¤é¤Ê¤¤¡£
-.\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
-.BR iswalnum (3),
-.BR iswalpha (3),
-.BR iswblank (3),
-.BR iswcntrl (3),
-.BR iswdigit (3),
-.BR iswgraph (3),
-.BR iswlower (3),
-.BR iswprint (3),
-.BR iswpunct (3),
-.BR iswspace (3),
-.BR iswupper (3),
-.BR iswxdigit (3),
-.BR setlocale (3),
-.BR toascii (3),
-.BR tolower (3),
-.BR toupper (3),
-.BR ascii (7),
-.BR locale (7)
+\fB0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F\fP の文字であるかどうかを調べることと等価である。
+.SH 返り値
+文字 \fIc\fP が調べた文字の種類に合っていれば 0 以外を返す。 そうでなければ 0 を返す。
+.SH 準拠
+C99, 4.3BSD.  C89 では、これらの関数のうち \fBisascii\fP()  と \fBisblank\fP()  以外の
+すべてが規定されている。 \fBisascii\fP()  は BSD や SVr4 の拡張である。 \fBisblank\fP()  は POSIX.1\-2001
+と C99 7.4.1.3 に準拠している。 POSIX.1\-2008 は、 \fBisascii\fP()  を廃止予定としている。
+ローカライズされたアプリケーションでは、移植性を確保しつつ、 この関数を使用することはできない点に注意すること。
+.SH 注意
+ある文字がどの種類に入るかということは、現在のロケールに依存する。 たとえば、デフォルトの \fBC\fP ロケールでは \fBisupper\fP()  は A
+のウムラウトを認識できないので、それが大文字だということがわからない。
+.SH 関連項目
+\fBiswalnum\fP(3), \fBiswalpha\fP(3), \fBiswblank\fP(3), \fBiswcntrl\fP(3),
+\fBiswdigit\fP(3), \fBiswgraph\fP(3), \fBiswlower\fP(3), \fBiswprint\fP(3),
+\fBiswpunct\fP(3), \fBiswspace\fP(3), \fBiswupper\fP(3), \fBiswxdigit\fP(3),
+\fBsetlocale\fP(3), \fBtoascii\fP(3), \fBtolower\fP(3), \fBtoupper\fP(3), \fBascii\fP(7),
+\fBlocale\fP(7)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.41 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。