1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" References consulted:
9 .\" GNU glibc-2 source code and manual
10 .\" Dinkumware C library reference http://www.dinkumware.com/
11 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
14 .\" Japanese Version Copyright (c) 1999 HAYAKAWA Hitoshi
15 .\" all rights reserved.
16 .\" Translated Sep 11 1999, HAYAKAWA Hitoshi <cz8cb01@linux.or.jp>
19 .\"WORD: convert コンバート
20 .\"WORD: single byte シングルバイト
21 .\"WORD: wide character ワイドキャラクター
24 .TH BTOWC 3 2011-09-22 "GNU" "Linux Programmer's Manual"
26 .\"O btowc \- convert single byte to wide character
28 btowc \- シングルバイトをワイド文字にコンバートする
34 .BI "wint_t btowc(int " c );
40 .\"O function converts \fIc\fP, interpreted as a multibyte sequence
41 .\"O of length 1, starting in the initial shift state, to a wide character and
45 .\"O or not a valid multibyte sequence of length 1,
51 関数は初期シフト状態から始まる長さ 1 のマルチバイトのシーケンスとして
52 解釈され、\fIc\fP をワイド文字にコンバートして返す。
55 もしくは長さ 1 の無効なマルチバイトシーケンスの場合、
60 .\"O .SH "RETURN VALUE"
64 .\"O function returns the wide character
65 .\"O converted from the single byte \fIc\fP.
68 .\"O or not a valid multibyte sequence of length 1,
72 関数はシングルバイト \fIc\fP からコンバートされたワイド文字を返す。
75 もしくは長さ 1 の無効なマルチバイトシーケンスの場合、
80 .\"O .SH "CONFORMING TO"
91 .\"O This function should never be used.
92 .\"O It does not work for encodings which have
93 .\"O state, and unnecessarily treats single bytes differently from multibyte
97 .\"O or the thread-safe
106 この関数は使用されるべきではない。状態(state)を持ったエンコードには使えず、
107 マルチバイトシーケンスとは違い、必ずしもシングルバイト