std::moneypunct
Aus 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; |
||
Die Facette std::moneypunct kapselt Geldwert-Format Präferenzen. Stream I / O-Manipulatoren std::get_money und std::put_money Verwendung std::moneypunct durch std::money_get und std::money_put zum Parsen Geldwert Eingabe und Formatierung Geldwert Ausgabe .
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.
Vier Spezialisierungen werden durch die Standard-Bibliothek zur Verfügung gestellt
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> | bietet Äquivalente der "C"-Locale Einstellungen
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> | bietet Breitzeichen Äquivalente der "C"-Locale Einstellungen
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> | bietet Äquivalente der "C"-Locale Vorlieben, mit internationalen Währungszeichen
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> | bietet Breitzeichen Äquivalente der "C"-Locale Vorlieben, mit internationalen Währungszeichen
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. |
Inhaltsverzeichnis |
[Bearbeiten] Mitglied Typen
| Mitglied Typ
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> |
[Bearbeiten] Member-Funktionen
| baut eine neue 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. (öffentliche Elementfunktion) | |
| zerstört sich eine moneypunct Facette 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. (geschützt Member-Funktion) | |
| | |
| Beruft 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. (öffentliche Elementfunktion) | |
| Beruft 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. (öffentliche Elementfunktion) | |
| Beruft 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. (öffentliche Elementfunktion) | |
| Beruft 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. (öffentliche Elementfunktion) | |
| Beruft 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. (öffentliche Elementfunktion) | |
| Beruft 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. (öffentliche Elementfunktion) | |
| Beruft 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. (öffentliche Elementfunktion) | |
| Beruft 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. (öffentliche Elementfunktion) | |
| Beruft 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. (öffentliche Elementfunktion) | |
[Bearbeiten] Geschützt Member-Funktionen
| [virtuell] |
bietet das Zeichen als Dezimalpunkt verwenden 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. (virtuellen geschützten Member-Funktion) |
| [virtuell] |
bietet das Zeichen als Tausendertrennzeichen verwenden 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. (virtuellen geschützten Member-Funktion) |
| [virtuell] |
stellt die Anzahlen von Ziffern zwischen jedem Paar von Tausendertrennzeichen 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. (virtuellen geschützten Member-Funktion) |
| [virtuell] |
bietet die Zeichenfolge als Währung Kennung verwenden 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. (virtuellen geschützten Member-Funktion) |
| [virtuell] |
bietet die Zeichenfolge an einen positiven Wert anzuzeigen 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. (virtuellen geschützten Member-Funktion) |
| [virtuell] |
bietet die Zeichenfolge auf einen negativen Wert anzuzeigen 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. (virtuellen geschützten Member-Funktion) |
| [virtuell] |
bietet die Anzahl der Stellen nach dem Komma angezeigt 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. (virtuellen geschützten Member-Funktion) |
| [virtuell] |
bietet die Formatierung für positive Werte 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. (virtuellen geschützten Member-Funktion) |
| [virtuell] |
bietet die Formatierung für negative Werte 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. (virtuellen geschützten Member-Funktion) |
[Bearbeiten] Mitglied Konstanten
| Mitglied
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 (statisch)
|
International
|
[Bearbeiten] Mitglied widerspricht
| static std::locale::id id |
ID des Gebietsschemas 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. (öffentliche Member-Objekt) |
Inherited from std::money_base
| Mitglied Typ
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 }; | ohne Bereichseinschränkung Aufzählungstyp
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]; }; | die monetäre das Format
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. |
| Enumeration konstant
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
|
Leerzeichen ist erlaubt, aber nicht erforderlich, außer in der letzten Position, wo Leerzeichen nicht zulässig ist
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
|
ein oder mehrere Leerzeichen sind erforderlich
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
|
die Sequenz von Zeichen durch moneypunct :: curr_symbol zurückgekehrt ist erforderlich
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
|
die erste der Zeichen durch moneypunct :: positive_sign oder moneypunct zurückgegeben :: negative_sign erforderlich
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
|
die absolute Zahl monetären Wert ist erforderlich
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. |
[Bearbeiten] Beispiel
#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
[Bearbeiten] Siehe auch
| definiert Währungsformatierungsregeln Muster 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. (Klasse) | |
| stellt das System bereitgestellten std::moneypunct für die benannte locale 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. (Klassen-Template) | |
| analysiert und konstruiert einen monetären Wert von einem Eingang Zeichenfolge 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. (Klassen-Template) | |
| Formate einen monetären Wert für die Ausgabe als Zeichenfolge 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. (Klassen-Template) | |
