名前空間
変種
操作

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

提供: cppreference.com
< cpp‎ | io‎ | basic filebuf
(r2.7.3) (ロボットによる 追加: de, en, es, fr, it, pt, ru, zh)
 
(1人の利用者による、間の2版が非表示)
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()}}への別のコールをするまで){{c|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 {{c|std::codecvt}} facet of {{tt|loc}}.}}
+
{{tt|}} の {{|std::codecvt}}
  
{{tr|古いロケールのエンコーディングが状態に依存すると、ファイルが先頭に配置されていない場合は、新しいロケールは以前に吹き込まれたものと同じ{{c|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 {{c|std::codecvt}} facet as the one previously imbued.}}
+
{{|std::codecvt}}
  
===パラメータ===
+
======
{{param list begin}}
+
{{begin}}
{{param list item | loc |{{tr| でストリームを鼓吹するためのロケールです| the locale to imbue the stream with}}}}
+
{{| loc | }}
{{param list end}}
+
{{end}}
  
===値を返します===
+
======
{{tr|(なし)|(none)}}
+
()
  
 
===例===
 
===例===
26行: 25行:
 
}}
 
}}
  
===も参照してください===
+
======
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/io/basic_streambuf/dcl list imbue}}
+
{{| cpp/io/basic_streambuf/imbue}}
{{dcl list template | cpp/io/basic_ios/dcl list imbue}}
+
{{| cpp/io/basic_ios/imbue}}
{{dcl list end}}
+
{{end}}
  
 
[[de:cpp/io/basic filebuf/imbue]]
 
[[de:cpp/io/basic filebuf/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]