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 19:48:40 JST 1999
23 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
25 .TH WCTRANS 3 2014\-01\-22 GNU "Linux Programmer's Manual"
27 wctrans \- ワイド文字変換マッピング
30 \fB#include <wctype.h>\fP
32 \fBwctrans_t wctrans(const char *\fP\fIname\fP\fB);\fP
35 \fIwctrans_t\fP 型は、あるワイド文字を他のワイド文字に変換できるマッピ ングを表現する。本質的には実装依存であるが、特殊な値
36 \fI(wctrans_t)0\fP は不正なマッピングを示す。0 でない値を持つ \fIwctrans_t\fP を \fBtowctrans\fP(3)
37 関数に渡すことによって、実際に ワイド文字の変換を実行させることができる。
39 \fBwctrans\fP() は、名前によって与えられるマッピングを返す。有効な名前の 集合は現在のロケールの \fBLC_CTYPE\fP
40 カテゴリに依存するが、以下の名前は全てのロケールにおいて有効である。
42 "tolower" \- \fBtolower\fP(3) のマッピングを実現する
43 "toupper" \- \fBtoupper\fP(3) のマッピングを実現する
46 \fBwctrans\fP() 関数は、\fIname\fP が有効ならばマッピング記述子を返す。 有効でなければ \fI(wctrans_t)\ 0\fP を返す。
48 .SS "マルチスレッディング (pthreads(7) 参照)"
49 \fBwctrans\fP() 関数は、例外付きのスレッドセーフである。実行中に \fBsetlocale\fP(3)
50 を呼び出してロケールを変更しない限り、マルチスレッドアプリケーションで安全に使用することができる。
54 \fBwctrans\fP() の動作は、現在のロケールの \fBLC_CTYPE\fP カテゴリに依存する。
58 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.77 の一部
59 である。プロジェクトの説明とバグ報告に関する情報は
60 http://www.kernel.org/doc/man\-pages/ に書かれている。