std::localeconv
提供:cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <clocale>
|
||
| std::lconv* localeconv(); |
||
localeconv関数は、現在のCロケールの数値および通貨書式の規則を表す型std::lconvの静的オブジェクトへのポインタを取得し.Original:
The
localeconv function obtains a pointer to a static object of type std::lconv, which represents numeric and monetary formatting rules of the current C locale.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目次 |
[編集] パラメータ
(なし)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 値を返します
Pointer to the current std::lconv object.
[編集] ノート
返されたポインタを使用してオブジェクト参照を変更すると、未定義の動作です.
Original:
Modifying the object references through the returned pointer is undefined behavior.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
std::localeconv同期が未定義の動作であることなく、異なるスレッドから呼び出す、静的なオブジェクトを変更.Original:
std::localeconv modifies a static object, calling it from different threads without synchronization is undefined behavior.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 例
#include <clocale> #include <iostream> int main() { std::setlocale(LC_ALL, "ja_JP.UTF-8"); std::lconv* lc = std::localeconv(); std::cout << "Japanese currency symbol: " << lc->currency_symbol << '(' << lc->int_curr_symbol << ")\n"; }
Output:
Japanese currency symbol: ¥(JPY )
[編集] も参照してください
| 現在のCロケールを取得し、設定します Original: gets and sets the current C locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (機能) | |
| std::localeconvによって返された書式設定の詳細、 Original: formatting details, returned by std::localeconv The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラス) | |
| C documentation for localeconv
| |