1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
10 .\" References consulted:
11 .\" GNU glibc-2 source code and manual
12 .\" Dinkumware C library reference http://www.dinkumware.com/
13 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
16 .\"*******************************************************************
18 .\" This file was generated with po4a. Translate the source file.
20 .\"*******************************************************************
22 .\" Translated Sat Oct 23 20:01:16 JST 1999
23 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
25 .TH WCTYPE 3 2014\-01\-22 GNU "Linux Programmer's Manual"
30 \fB#include <wctype.h>\fP
32 \fBwctype_t wctype(const char *\fP\fIname\fP\fB);\fP
35 \fIwctype_t\fP 型は、ワイド文字が持っている、あるいは持っていない属性を表現する。 言い換えると、 \fIwctype_t\fP
36 型はワイド文字のクラスを表現する。 この型は本質的に実装依存であるが、特殊な値 \fI(wctype_t) 0\fP は不正な属性を示す。 0 でない値を持つ
37 \fIwctype_t\fP を \fBiswctype\fP(3) 関数に渡すことによって、 与えられたワイド文字がその属性を持つかどうかを実際に
40 \fBwctype\fP() 関数は、名前によって与えられる属性を返す。有効な名前の集 合は現在のロケールの \fBLC_CTYPE\fP
41 カテゴリに依存するが、以下の名前は全てのロケールで有効である。
43 "alnum" \- クラス化関数 \fBisalnum\fP(3) を実現する
44 "alpha" \- クラス化関数 \fBisalpha\fP(3) を実現する
45 "blank" \- クラス化関数 \fBisblank\fP(3) を実現する
46 "cntrl" \- クラス化関数 \fBiscntrl\fP(3) を実現する
47 "digit" \- クラス化関数 \fBisdigit\fP(3) を実現する
48 "graph" \- クラス化関数 \fBisgraph\fP(3) を実現する
49 "lower" \- クラス化関数 \fBislower\fP(3) を実現する
50 "print" \- クラス化関数 \fBisprint\fP(3) を実現する
51 "punct" \- クラス化関数 \fBispunct\fP(3) を実現する
52 "space" \- クラス化関数 \fBisspace\fP(3) を実現する
53 "upper" \- クラス化関数 \fBisupper\fP(3) を実現する
54 "xdigit" \- クラス化関数 \fBisxdigit\fP(3) を実現する
57 \fBwctype\fP() 関数は、 \fIname\fP が有効ならば属性記述子を返す。 有効でなければ \fI(wctype_t) 0\fP を返す。
59 .SS "マルチスレッディング (pthreads(7) 参照)"
60 \fBwctype\fP() 関数は、例外付きのスレッドセーフである。実行中に \fBsetlocale\fP(3)
61 を呼び出してロケールを変更しない限り、マルチスレッドアプリケーションで安全に使用することができる。
65 \fBwctype\fP() の動作は、現在のロケールの \fBLC_CTYPE\fP カテゴリに依存する。
69 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.76 の一部
70 である。プロジェクトの説明とバグ報告に関する情報は
71 http://www.kernel.org/doc/man\-pages/ に書かれている。