std::lconv
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. |
<metanoindex/>
<tbody> </tbody>| definiert in Header <clocale>
|
||
struct lconv; |
||
Die Klasse
std::lconv enthält numerische und monetäre Formatierung Regeln wie von einem C Gebietsschema definiert. Objekte dieser Struktur kann mit std::localeconv erhältlich. Die Mitglieder des std::lconv sind Werte vom Typ char und vom Typ char*. Jeder char* Mitglied Ausnahme decimal_point kann bei einem Null-Zeichen gerichtet sein (das heißt, in einem leeren C-String). Die Mitglieder des Typs char sind alle nicht-negativen Zahlen, von denen jeder CHAR_MAX sein kann, wenn der entsprechende Wert nicht in der aktuellen C locale zur Verfügung .Original:
The class
std::lconv contains numeric and monetary formatting rules as defined by a C locale. Objects of this struct may be obtained with std::localeconv. The members of std::lconv are values of type char and of type char*. Each char* member except decimal_point may be pointing at a null character (that is, at an empty C-string). The members of type char are all non-negative numbers, any of which may be CHAR_MAX if the corresponding value is not available in 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.
Mitglied widerspricht
Nicht-monetäre numerische Formatierung Parameter
char* decimal_point |
das Zeichen als Dezimaltrennzeichen verwendet Original: the character used as 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. (öffentliche Member-Objekt) |
char* thousands_sep |
das Zeichen zum Trennen Gruppen von Ziffern vor dem Komma verwendet Original: the character used to separate groups of digits before 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. (öffentliche Member-Objekt) |
char* grouping |
ein String, dessen Elemente geben die Größen von stellige Gruppen Original: a string whose elements indicate the sizes of digit groups 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) |
Monetary numerische Formatierung Parameter
char* mon_decimal_point |
das Zeichen als Dezimaltrennzeichen verwendet Original: the character used as 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. (öffentliche Member-Objekt) |
char* mon_thousands_sep |
das Zeichen zum Trennen Gruppen von Ziffern vor dem Komma verwendet Original: the character used to separate groups of digits before 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. (öffentliche Member-Objekt) |
char* mon_grouping |
ein String, dessen Elemente geben die Größen von stellige Gruppen Original: a string whose elements indicate the sizes of digit groups 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) |
char* positive_sign |
ein String verwendet, um nicht-negative Währungs Menge anzugeben Original: a string used to indicate non-negative monetary quantity 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) |
char* negative_sign |
eine Zeichenfolge, mit negativen monetären Menge anzugeben Original: a string used to indicate negative monetary quantity 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) |
Lokale monetären numerische Formatierung Parameter
char* currency_symbol |
das Symbol für Währung, in der aktuellen C locale verwendet Original: the symbol used for currency in 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. (öffentliche Member-Objekt) |
char frac_digits |
die Anzahl der Stellen nach dem Komma in einem monetären Menge anzuzeigen Original: the number of digits after the decimal point to display in a monetary quantity 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) |
char p_cs_precedes |
1 wenn currency_symbol bevor nicht negativen Wert gesetzt wird, wenn nach 0Original: 1 if currency_symbol is placed before non-negative value, 0 if afterThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Member-Objekt) |
char n_cs_precedes |
1 wenn currency_symbol vor negativen Wert gelegt wird, 0 wenn nachOriginal: 1 if currency_symbol is placed before negative value, 0 if afterThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Member-Objekt) |
char p_sep_by_space |
zeigt die Trennung von currency_symbol, positive_sign, und die nicht-negativen GeldwertOriginal: indicates the separation of currency_symbol, positive_sign, and the non-negative monetary valueThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Member-Objekt) |
char n_sep_by_space |
zeigt die Trennung von currency_symbol, negative_sign, und die negative GeldwertOriginal: indicates the separation of currency_symbol, negative_sign, and the negative monetary valueThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Member-Objekt) |
char p_sign_posn |
zeigt die Position des positive_sign in einer nicht-negativen GeldwertOriginal: indicates the position of positive_sign in a non-negative monetary valueThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Member-Objekt) |
char n_sign_posn |
zeigt die Position des negative_sign in einer negativen GeldwertOriginal: indicates the position of negative_sign in a negative monetary valueThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Member-Objekt) |
Internationale Währungs-numerische Formatierung Parameter
char* int_curr_symbol |
die Zeichenfolge als internationale Währung Namen in der aktuellen C locale verwendet Original: the string used as international currency name in 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. (öffentliche Member-Objekt) |
char int_frac_digits |
die Anzahl der Stellen nach dem Komma in einem internationalen Währungssystem Menge anzuzeigen Original: the number of digits after the decimal point to display in an international monetary quantity 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) |
char int_p_cs_precedes |
1 wenn currency_symbol vor nicht-negative internationalen monetären Wert gelegt wird, 0 wenn nachOriginal: 1 if currency_symbol is placed before non-negative international monetary value, 0 if afterThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Member-Objekt) |
char int_n_cs_precedes |
1 wenn currency_symbol vor negativen internationalen monetären Wert gelegt, 0 wenn nachOriginal: 1 if currency_symbol is placed before negative international monetary value, 0 if afterThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Member-Objekt) |
char int_p_sep_by_space |
zeigt die Trennung von currency_symbol, positive_sign, und die nicht-negativen internationalen monetären WertOriginal: indicates the separation of currency_symbol, positive_sign, and the non-negative international monetary valueThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Member-Objekt) |
char int_n_sep_by_space |
zeigt die Trennung von currency_symbol, negative_sign und die negativen internationalen monetären WertOriginal: indicates the separation of currency_symbol, negative_sign, and the negative international monetary valueThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Member-Objekt) |
char int_p_sign_posn |
zeigt die Position des positive_sign in einer nicht-negativen internationalen monetären WertOriginal: indicates the position of positive_sign in a non-negative international monetary valueThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Member-Objekt) |
char int_n_sign_posn |
zeigt die Position des negative_sign in einem negativen internationalen monetären WertOriginal: indicates the position of negative_sign in a negative international monetary valueThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Member-Objekt) |
Die Zeichen der C-Strings, auf die
grouping und mon_grouping werden nach ihrer numerischen Werte interpretiert. Wenn das abschließende '\0' angetroffen wird, wird der letzte Wert gesehen angenommen für den Rest der Stellen zu wiederholen. Wenn CHAR_MAX angetroffen wird, sind keine weiteren Ziffern gruppiert. die typische Gruppierung von drei Ziffern in einer Zeit ist "\003" .Original:
The characters of the C-strings pointed to by
grouping and mon_grouping are interpreted according to their numeric values. When the terminating '\0' is encountered, the last value seen is assumed to repeat for the remainder of digits. If CHAR_MAX is encountered, no further digits are grouped. the typical grouping of three digits at a time is "\003".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.
Die Werte der
p_sep_by_space, n_sep_by_space, int_p_sep_by_space, int_n_sep_by_space werden wie folgt interpretiert:Original:
The values of
p_sep_by_space, n_sep_by_space, int_p_sep_by_space, int_n_sep_by_space are interpreted as follows: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.
| 0 | kein Platz trennt den Währungssymbol und den Wert
Original: no space separates the currency symbol and the value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| 1 | Anmeldung klebt an dem Währungssymbol, wird der Wert durch ein Leerzeichen getrennt
Original: sign sticks to the currency symbol, value is separated by a space The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| 2 | Anmeldung Sticks auf den Wert. Währungssymbol wird durch ein Leerzeichen getrennt
Original: sign sticks to the value. Currency symbol is separated by a space The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Die Werte der
p_sign_posn, n_sign_posn, int_p_sign_posn, int_n_sign_posn werden wie folgt interpretiert:Original:
The values of
p_sign_posn, n_sign_posn, int_p_sign_posn, int_n_sign_posn are interpreted as follows: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.
| 0 | Klammern um den Wert und die Währungssymbol verwendet werden, um das Zeichen zu repräsentieren
Original: parentheses around the value and the currency symbol are used to represent the sign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| 1 | Anmeldung vor dem Wert und dem Währungssymbol
Original: sign before the value and the currency symbol The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| 2 | Anmeldung nach dem Wert und dem Währungssymbol
Original: sign after the value and the currency symbol The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| 3 | Anmeldung vor dem Währungssymbol
Original: sign before the currency symbol The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| 4 | Anmeldung nach dem Währungssymbol
Original: sign after the currency symbol The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Beispiel
#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 )
Siehe auch
fragt numerische und finanzielle Formatierung Details der aktuellen locale Original: queries numeric and monetary formatting details of the current locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
definiert numerische Satzzeichen Regeln Original: defines numeric punctuation rules The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klassen-Template) | |
definiert Währungsformatierungsregeln Parameter std::money_get und std::money_put verwendet Original: defines monetary formatting parameters used by std::money_get and std::money_put The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klassen-Template) | |
C documentation for lconv
| |