名前空間
変種
操作

std::moneypunct

提供: cppreference.com
< cpp‎ | locale

 
 
ローカライゼーションライブラリ
ロケールおよびファセット
Original:
Locales and facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
locale
文字分類
Original:
Character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
変換
Original:
Conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ファセットカテゴリの基底クラスです
Original:
Facet category base classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ファセットカテゴリ
Original:
Facet categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ロケール固有のファセット
Original:
Locale-specific facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
コー​​ド変換ファセット
Original:
Code conversion facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
codecvt_utf8(C++11)
codecvt_utf16(C++11)
Cロケール
Original:
C locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
 
Defined in header <locale>
template< class CharT, bool International = false >
class moneypunct;
ファセットstd::moneypunctは、貨幣価値の書式設定をカプセル化します。ストリーム入出力マニピュレータstd::get_moneystd::put_moneyを通じてstd::moneypunct使用std::money_getstd::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.
cpp/locale/money basecpp/locale/locale/facetstd-moneypunct-inheritance.svg
画像の詳細

Inheritance diagram

四つの専門分野は、標準ライブラリで提供されています
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.
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.

(protectedメンバー関数)
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.

(クラス) [edit]
名前のロケール用のシステム提供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.

(クラステンプレート) [edit]
入力文字シーケンスからの金銭的価値を解析し、構築します
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.

(クラステンプレート) [edit]
フォーマット文字シーケンスとして出力するための金銭的価値
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.

(クラステンプレート) [edit]