OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / release / man3 / towlower.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\" and Copyright (C) 2014 Michael Kerrisk <mtk.manpages@gmail.com>
3 .\"
4 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
9 .\" %%%LICENSE_END
10 .\"
11 .\" References consulted:
12 .\"   GNU glibc-2 source code and manual
13 .\"   Dinkumware C library reference http://www.dinkumware.com/
14 .\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
15 .\"   ISO/IEC 9899:1999
16 .\"
17 .\"*******************************************************************
18 .\"
19 .\" This file was generated with po4a. Translate the source file.
20 .\"
21 .\"*******************************************************************
22 .\"
23 .\" Translated Mon Oct 25 08:06:53 JST 1999
24 .\"           by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
25 .\"
26 .TH TOWLOWER 3 2014\-03\-18 GNU "Linux Programmer's Manual"
27 .SH 名前
28 towlower, towlower_l \- ワイド文字 1 個を小文字に変換する
29 .SH 書式
30 .nf
31 \fB#include <wctype.h>\fP
32 .sp
33 \fBwint_t towlower(wint_t \fP\fIwc\fP\fB);\fP
34
35 \fBwint_t towlower_l(wint_t \fP\fIwc\fP\fB, locale_t \fP\fIlocale\fP\fB);\fP
36 .fi
37 .sp
38 .in -4n
39 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
40 .in
41 .sp
42 \fBtowlower_l\fP():
43 .PD 0
44 .RS 4
45 .TP 
46 glibc 2.10 以降:
47 _XOPEN_SOURCE\ >=\ 700
48 .TP 
49 glibc 2.10 より以前:
50 _GNU_SOURCE
51 .RE
52 .PD
53 .SH 説明
54 \fBtowlower\fP() 関数は、 \fBtolower\fP(3) 関数に対応するワイド文字関数である。 \fIwc\fP
55 が大文字のワイド文字で、現在のロケールで対応する小文字が存在する場合、 \fIwc\fP に対応する小文字が返される。 それ以外の場合には、 \fIwc\fP
56 は変更されずに返される。
57
58 \fBtowupper_l\fP() 関数も同様の動作を行うが、 \fIlocale\fP で指定されたロケールでの文字列型の情報に基づき変換が行われる点が異なる。
59 \fIlocale\fP が特別なロケールオブジェクト \fBLC_GLOBAL_LOCALE\fP の場合、もしくは \fIlocale\fP
60 が有効なロケールオブジェクトハンドルでない場合、 \fBtowupper_l\fP() の動作は未定義である。
61
62 引き数 \fIwc\fP は、 指定されたロケールで有効な \fIwchar_t\fP で表現できる文字、または値 \fBWEOF\fP でなければならない。
63 .SH 返り値
64 \fIwc\fP が小文字に変換可能だった場合、 \fBtowlower\fP() は対応する小文字を返す。 そうでない場合、 \fIwc\fP を返す。
65 .SH 属性
66 .SS "マルチスレッディング (pthreads(7) 参照)"
67 .\" FIXME . need a thread-safety statement about towlower_l()
68 \fBtowlower\fP() 関数は、例外付きのスレッドセーフである。実行中に \fBsetlocale\fP(3)
69 を呼び出してロケールを変更しない限り、マルチスレッドアプリケーションで安全に使用することができる。
70 .SH バージョン
71 \fBtowlower_l\fP() 関数は glibc 2.3 で初めて登場した。
72 .SH 準拠
73 \fBtowlower\fP(): C99, POSIX.1\-2001 (XSI); POSIX.1\-2008 の XSI
74 拡張に存在しているが、廃止予定とされている。
75
76 \fBtowlower_l\fP(): POSIX.1\-2008.
77 .SH 注意
78 これらの関数の動作は、ロケールの \fBLC_CTYPE\fP カテゴリーに依存する。
79 .PP
80 これらの関数で Unicode 文字を扱うのはあまり適切でない。 なぜなら、Unicode には、大文字 (upper case)・小文字 (lower
81 case)・ タイトル文字 (title case) という 3 つの "case" が含まれているからである。
82 .SH 関連項目
83 \fBiswlower\fP(3), \fBtowctrans\fP(3), \fBtowupper\fP(3), \fBlocale\fP(7)
84 .SH この文書について
85 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
86 である。プロジェクトの説明とバグ報告に関する情報は
87 http://www.kernel.org/doc/man\-pages/ に書かれている。