std::moneypunct
提供: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 <locale>
|
||
| template< class CharT, bool International = false > class moneypunct; |
||
ファセットstd::moneypunctは、貨幣価値の書式設定をカプセル化します。ストリーム入出力マニピュレータstd::get_moneyとstd::put_moneyを通じてstd::moneypunct使用std::money_getとstd::money_put貨幣価値の入力と書式金銭的価値の出力を解析するための.
Original:
The facet std::moneypunct encapsulates monetary value format preferences. Stream I/O manipulators std::get_money and std::put_money use std::moneypunct through std::money_get and std::money_put for parsing monetary value input and formatting monetary value output.
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:
Four specializations are provided by the standard library
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.
| Defined in header
<locale> | |
| std::moneypunct<char> | "C"ロケール·プリファレンスの同等物を提供しています
Original: provides equivalents of the "C" locale preferences The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| std::moneypunct<wchar_t> | "C"ロケール·プリファレンスのワイド文字同等物を提供しています
Original: provides wide character equivalents of the "C" locale preferences The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| std::moneypunct<char, true> | 国際通貨記号と、 "C"ロケール·プリファレンスの同等物を提供しています
Original: provides equivalents of the "C" locale preferences, with international currency symbols The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| std::moneypunct<wchar_t, true> | 国際通貨記号と、 "C"ロケール·プリファレンスのワイド文字同等物を提供しています
Original: provides wide character equivalents of the "C" locale preferences, with international currency symbols The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
目次 |
[編集] メンバータイプ
| メンバー·タイプ
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
char_type
|
charT
|
string_type
|
std::basic_string<charT> |
[編集] メンバ関数
| 新しいmoneypunctファセットを構築します Original: constructs a new moneypunct facet The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
| moneypunctファセットを破棄します Original: destructs a moneypunct facet The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (メンバー関数を保護しました) | |
| | |
do_decimal_pointを呼び出します Original: invokes do_decimal_point The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
do_thousands_sepを呼び出します Original: invokes do_thousands_sep The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
do_groupingを呼び出します Original: invokes do_grouping The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
do_curr_symbolを呼び出します Original: invokes do_curr_symbol The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
do_positive_signを呼び出します Original: invokes do_positive_sign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
do_negative_signを呼び出します Original: invokes do_negative_sign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
do_frac_digitsを呼び出します Original: invokes do_frac_digits The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
do_pos_formatを呼び出します Original: invokes do_pos_format The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
do_neg_formatを呼び出します Original: invokes do_neg_format The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
[編集] メンバ関数を保護しました
| [仮想] |
小数点として使用する文字を提供します Original: provides the character to use as decimal point The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |
| [仮想] |
桁区切り記号として使用する文字を提供します Original: provides the character to use as thousands separator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |
| [仮想] |
桁区切りの各ペア間の数字の番号を提供します Original: provides the numbers of digits between each pair of thousands separators The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |
| [仮想] |
通貨識別子として使用する文字列を提供します Original: provides the string to use as the currency identifier The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |
| [仮想] |
正の値を示すために文字列を提供します Original: provides the string to indicate a positive value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |
| [仮想] |
負の値を表すために文字列を提供します Original: provides the string to indicate a negative value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |
| [仮想] |
小数点以下に表示する桁数が用意されています Original: provides the number of digits to display after the decimal point The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |
| [仮想] |
正の値のフォーマットパターンを提供します Original: provides the formatting pattern for positive values The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |
| [仮想] |
負の値のフォーマットパターンを提供します Original: provides the formatting pattern for negative values The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |
[編集] メンバー定数
| メンバー
Original: Member The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
const bool intl (静的)
|
International
|
[編集] メンバーオブジェクト
| static std::locale::id id |
idはロケールの Original: id of the locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバオブジェクト) |
Inherited from std::money_base
| メンバー·タイプ
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
| enum part { none, space, symbol, sign, value }; | 対象範囲外の列挙型
Original: unscoped enumeration type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| struct pattern { char field[4]; }; | 金銭的な形式のタイプです
Original: the monetary format type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| 列挙定数
Original: Enumeration constant The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
none
|
空白は空白は許可されていない最後の位置を除いて許可されますが、必須ではありません
Original: whitespace is permitted but not required except in the last position, where whitespace is not permitted The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
space
|
1つ以上の空白文字が必要です
Original: one or more whitespace characters are required The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
symbol
|
moneypunct :: curr_symbolによって返された文字のシーケンスが必要です
Original: the sequence of characters returned by moneypunct::curr_symbol is required The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
sign
|
moneypunct :: positive_signまたはmoneypunctによって返された文字の最初のものは:: negative_signが必要です
Original: the first of the characters returned by moneypunct::positive_sign or moneypunct::negative_sign is required The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
value
|
絶対数値貨幣価値が必要です
Original: the absolute numeric monetary value is required The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] 例
#include <iostream> #include <locale> int main() { std::locale jp("ja_JP.UTF-8"); std::cout << "japanese currency symbol is " << std::use_facet<std::moneypunct<char, true>>(jp).curr_symbol() << "or " << std::use_facet<std::moneypunct<char>>(jp).curr_symbol() << " for short\n"; }
Output:
japanese currency symbol is JPY or ¥ for short
[編集] も参照してください
| 通貨フォーマットパターンが定義されています Original: defines monetary formatting patterns The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラス) | |
| 名前のロケール用のシステム提供std::moneypunctを表しています Original: represents the system-supplied std::moneypunct for the named locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) | |
| 入力文字シーケンスからの金銭的価値を解析し、構築します Original: parses and constructs a monetary value from an input character sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) | |
| フォーマット文字シーケンスとして出力するための金銭的価値 Original: formats a monetary value for output as a character sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) | |
