[ Web Proxy ]
URL:
Viewing: https://fr.cppreference.com/cpp/locale/moneypunct [Back]  [Original]

std::moneypunct cppreference.com
cppreference.com
Espaces de noms
Variantes

std::moneypunct

De cppreference.com

<metanoindex/>

 
 
Bibliothque localisations
Locales et facettes
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
Classification des caractres
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.
Conversions
Original:
Conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Classes de facettes catgorie de base
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.
Catgories de facettes
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.
Spcifique aux paramtres rgionaux facettes
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.
Facettes de conversion de code
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 locale
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.
 
 
<tbody> </tbody>
Dclar dans l'en-tte <locale>
template< class CharT, bool International = false > class moneypunct;
Le std::moneypunct facette encapsule montaires prfrences de format de valeur. Flux d'E / S et manipulateurs std::get_money std::put_money utilisation std::moneypunct par std::money_get et std::money_put pour analyser entre de la valeur montaire et valeur de sortie mise en forme montaire .
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.
std-moneypunct-inheritance.svg [std-moneypunct-inheritance.svg]

Inheritance diagram

Quatre spcialisations sont fournis par la bibliothque standard
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>
fournit des quivalents des prfrences "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>
fournit des quivalents de caractres tendus des prfrences "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>
fournit des quivalents des prfrences "C", avec des symboles montaires internationaux
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>
fournit des quivalents de caractres tendus des prfrences "C", avec des symboles montaires internationaux
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.

Types de membres

Type du membre Dfinition
char_type charT
string_type std::basic_string<charT>

Fonctions membres

construit un nouveau moneypunct facette
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.

(fonction membre publique)
Dtruit une facette 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.

(fonction membre protge)
Invoque 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.

(fonction membre publique)
Invoque 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.

(fonction membre publique)
Invoque 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.

(fonction membre publique)
Invoque 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.

(fonction membre publique)
Invoque 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.

(fonction membre publique)
Invoque 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.

(fonction membre publique)
Invoque 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.

(fonction membre publique)
Invoque 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.

(fonction membre publique)
Invoque 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.

(fonction membre publique)

Protg fonctions membres

[
virtuel
Original:
virtual
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
fournit le caractre utiliser comme sparateur dcimal
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.

(fonction membre virtuelle protge)
[
virtuel
Original:
virtual
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
fournit le caractre utiliser comme sparateur de milliers
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.

(fonction membre virtuelle protge)
[
virtuel
Original:
virtual
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
indique le nombre de chiffres entre chaque paire de sparateurs de milliers
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.

(fonction membre virtuelle protge)
[
virtuel
Original:
virtual
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
fournit la chane utiliser comme identificateur de devise
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.

(fonction membre virtuelle protge)
[
virtuel
Original:
virtual
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
fournit la chane de caractres pour indiquer une valeur positive
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.

(fonction membre virtuelle protge)
[
virtuel
Original:
virtual
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
fournit la chane de caractres pour indiquer une valeur ngative
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.

(fonction membre virtuelle protge)
[
virtuel
Original:
virtual
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
indique le nombre de chiffres afficher aprs la virgule
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.

(fonction membre virtuelle protge)
[
virtuel
Original:
virtual
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
fournit le modle de formatage pour les valeurs positives
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.

(fonction membre virtuelle protge)
[
virtuel
Original:
virtual
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
fournit le modle de formatage pour les valeurs ngatives
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.

(fonction membre virtuelle protge)

Constantes membres

Membre
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 (
statique
Original:
static
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
)
International

Objets membres

static std::locale::id id
Id de la localisation
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.

(objet membre public)

Inherited from std::money_base

Type du membre Dfinition
enum part { none, space, symbol, sign, value };
type d'numration sans porte
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]; };
le type de format montaire
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.
numration constante
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
espaces sont autoriss, mais pas ncessaire, sauf en dernire position, o les espaces sont pas autoriss
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
un ou plusieurs caractres d'espacement sont ncessaires
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
la squence de caractres renvoys par moneypunct :: curr_symbol est ncessaire
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
le premier des caractres renvoys par moneypunct :: positive_sign ou moneypunct :: negative_sign est ncessaire
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
la valeur absolue numrique montaire est ncessaire
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.

Exemple

#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";
}

Rsultat :

japanese currency symbol is JPY or  for short

Voir aussi

dfinit les modles de mise en forme montaire
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.

(classe) [edit]
reprsente le systme fourni par std::moneypunct pour l'environnement local nomm
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.

(classe gnrique) [edit]
analyse et construit une valeur montaire partir d'une squence de caractres d'entre
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.

(classe gnrique) [edit]
formate une valeur montaire pour la sortie comme une squence de caractres
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.

(classe gnrique) [edit]

Web Proxy Viewer  |  New URL  |  Original Page