wctransのヘルプ・マニュアル
日本語 英語
wctrans --help
man wctrans
WCTRANS(3) Linux Programmer’s Manual WCTRANS(3)
名前
wctrans - ワイド文字変換マッピング
書式
#include
wctrans_t wctrans(const char *name);
説明
wctrans_t 型は、あるワイド文字を他のワイド文字に変換できるマッピングを
表現する。本質的には実装依存であるが、特殊な値 (wctrans_t)0 は不正な マ
ッピングを示す。0 でない値を持つ wctrans_t を towctrans(3) 関数に渡すこ
とによって、実際にワイド文字の変換を実行させることができる。
wctrans() は、名前によって与えられるマッピングを返す。有効な名前の集 合
は 現在のロケールの LC_CTYPE カテゴリに依存するが、以下の名前は全てのロ
ケールにおいて有効である。
"tolower" - tolower(3) のマッピングを実現する
"toupper" - toupper(3) のマッピングを実現する
返り値
wctrans() 関数は、name が有効ならばマッピング記述子を返す。有効でなけれ
ば (wctrans_t) 0 を返す。
準拠
C99.
注意
wctrans() の動作は、現在のロケールの LC_CTYPE カテゴリに依存する。
関連項目
towctrans(3)
GNU 1999-07-25 WCTRANS(3)
WCTRANS(3) Linux Programmer’s Manual WCTRANS(3)
NAME
wctrans - wide-character translation mapping
SYNOPSIS
#include
wctrans_t wctrans(const char *name);
DESCRIPTION
The wctrans_t type represents a mapping which can map a wide character
to another wide character. Its nature is implementation-dependent, but
the special value (wctrans_t) 0 denotes an invalid mapping. Non-zero
wctrans_t values can be passed to the towctrans(3) function to actually
perform the wide-character mapping.
The wctrans() function returns a mapping, given by its name. The set
of valid names depends on the LC_CTYPE category of the current locale,
but the following names are valid in all locales.
"tolower" - realizes the tolower(3) mapping
"toupper" - realizes the toupper(3) mapping
RETURN VALUE
The wctrans() function returns a mapping descriptor if the name is
valid. Otherwise it returns (wctrans_t) 0.
CONFORMING TO
C99.
NOTES
The behavior of wctrans() depends on the LC_CTYPE category of the cur-
rent locale.
SEE ALSO
towctrans(3)
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 1999-07-25 WCTRANS(3)