basic_ios::imbue
ロケールを変更します。
locale imbue(
const locale& _Loc
);
パラメーター
- _Loc
ロケールの文字列。
戻り値
前のロケール。
解説
rdbuf が null ポインターの場合は、メンバー関数の呼び出し
rdbuf->pubimbue (_Loc)
どちらの場合も、ios_base::imbue (_Loc) を返します。
使用例
// basic_ios_imbue.cpp
// compile with: /EHsc
#include <iostream>
#include <locale>
int main( )
{
using namespace std;
cout.imbue( locale( "french_france" ) );
double x = 1234567.123456;
cout << x << endl;
}
必要条件
ヘッダー: <ios>
名前空間: std