名前空間
変種
操作

「cpp/io/basic filebuf/imbue」の版間の差分

提供: cppreference.com
< cpp‎ | io‎ | basic filebuf
(Fix some translations)
 
1行: 1行:
{{tr_note}}
 
 
{{cpp/io/basic_filebuf/title | imbue }}
 
{{cpp/io/basic_filebuf/title | imbue }}
 
{{cpp/io/basic_filebuf/navbar}}
 
{{cpp/io/basic_filebuf/navbar}}
7行: 6行:
 
}}
 
}}
  
{{tr|すべての文字が挿入されたり、この呼び出しの後に抽出した(と{{tt|imbue()}}への別のコールをするまで){{lc|std::codecvt}}の{{tt|loc}}ファセットを使用して変換されるように関連付けられているロケールを変更.|Changes the associated locale so that all characters inserted or extracted after this call (and until another call to {{tt|imbue()}}) are converted using the {{lc|std::codecvt}} facet of {{tt|loc}}.}}
+
{{tt|}} の {{lc|std::codecvt}}
  
{{tr|古いロケールのエンコーディングが状態に依存すると、ファイルが先頭に配置されていない場合は、新しいロケールは以前に吹き込まれたものと同じ{{lc|std::codecvt}}ファセットを持っている必要があります.|If the old locale's encoding is state-dependent and file is not positioned at the beginning, then the new locale must have the same {{lc|std::codecvt}} facet as the one previously imbued.}}
+
{{lc|std::codecvt}}
  
===パラメータ===
+
======
 
{{par begin}}
 
{{par begin}}
{{par | loc |{{tr| でストリームを鼓吹するためのロケールです| the locale to imbue the stream with}}}}
+
{{par | loc | }}
 
{{par end}}
 
{{par end}}
  
===値を返します===
+
======
 
(なし)
 
(なし)
  
26行: 25行:
 
}}
 
}}
  
===参照===
+
======
 
{{dsc begin}}
 
{{dsc begin}}
 
{{dsc inc | cpp/io/basic_streambuf/dsc imbue}}
 
{{dsc inc | cpp/io/basic_streambuf/dsc imbue}}

2018年6月9日 (土) 05:44時点における最新版

 
 
入出力ライブラリ
入出力マニピュレータ
Cスタイルの入出力
バッファ
(C++98で非推奨)
ストリーム
抽象
ファイル入出力
文字列入出力
配列入出力
(C++98で非推奨)
(C++98で非推奨)
(C++98で非推奨)
同期化出力
エラーカテゴリインタフェース
(C++11)
 
 
protected:
virtual void imbue( const std::locale& loc )

この呼び出しの後に挿入または抽出されるすべての文字が locstd::codecvt ファセットを使用して変更されるように、紐付けられているロケールを変更します。

古いロケールのエンコーディングが状態依存であり、ファイルが先頭に位置していない場合、新しいロケールは以前設定されていたロケールと同じ std::codecvt ファセットを持たなければなりません。

目次

[編集] 引数

loc - ストリームに設定するロケール

[編集] 戻り値

(なし)

[編集]

[編集] 関連項目

[仮想]
紐付けられているロケールを変更します
(std::basic_streambuf<CharT,Traits>の仮想プロテクテッドメンバ関数) [edit]
ロケールを設定します
(std::basic_ios<CharT,Traits>のパブリックメンバ関数) [edit]