Namensräume
Varianten
Aktionen

std::lconv

Aus cppreference.com
< cpp‎ | locale

 
 
Lokalisierungen Bibliothek
Locales und Facetten
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
Buchstaben-Klassifikation
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.
Facet Kategorie Basisklassen
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.
Facet Kategorien
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.
Locale-spezifische Facetten
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.
Code-Konvertierung Facetten
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.
 
std::locale
Mitglied Typen
Original:
Member types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
locale::id
locale::facet
Member-Funktionen
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
locale::locale
locale::~locale
locale::operator=
locale::combine
locale::name
locale::operator==
locale::operator!=
locale::operator()
Statische Member-Funktionen
Original:
Static member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
locale::global
locale::classic
 
Defined 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.

Inhaltsverzeichnis

[Bearbeiten] Mitglied widerspricht

[Bearbeiten] 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)

[Bearbeiten] 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)

[Bearbeiten] 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 0
Original:
1 if currency_symbol is placed before non-negative value, 0 if after
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 n_cs_precedes
1 wenn currency_symbol vor negativen Wert gelegt wird, 0 wenn nach
Original:
1 if currency_symbol is placed before negative value, 0 if after
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_sep_by_space
zeigt die Trennung von currency_symbol, positive_sign, und die nicht-negativen Geldwert
Original:
indicates the separation of currency_symbol, positive_sign, and the non-negative monetary value
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 n_sep_by_space
zeigt die Trennung von currency_symbol, negative_sign, und die negative Geldwert
Original:
indicates the separation of currency_symbol, negative_sign, and the negative monetary value
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_sign_posn
zeigt die Position des positive_sign in einer nicht-negativen Geldwert
Original:
indicates the position of positive_sign in a non-negative monetary value
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 n_sign_posn
zeigt die Position des negative_sign in einer negativen Geldwert
Original:
indicates the position of negative_sign in a negative monetary value
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)

[Bearbeiten] 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 nach
Original:
1 if currency_symbol is placed before non-negative international monetary value, 0 if after
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_n_cs_precedes
1 wenn currency_symbol vor negativen internationalen monetären Wert gelegt, 0 wenn nach
Original:
1 if currency_symbol is placed before negative international monetary value, 0 if after
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_sep_by_space
zeigt die Trennung von currency_symbol, positive_sign, und die nicht-negativen internationalen monetären Wert
Original:
indicates the separation of currency_symbol, positive_sign, and the non-negative international monetary value
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_n_sep_by_space
zeigt die Trennung von currency_symbol, negative_sign und die negativen internationalen monetären Wert
Original:
indicates the separation of currency_symbol, negative_sign, and the negative international monetary value
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_sign_posn
zeigt die Position des positive_sign in einer nicht-negativen internationalen monetären Wert
Original:
indicates the position of positive_sign in a non-negative international monetary value
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_n_sign_posn
zeigt die Position des negative_sign in einem negativen internationalen monetären Wert
Original:
indicates the position of negative_sign in a negative international monetary value
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)


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.
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.
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.
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.

[Bearbeiten] Beispiel

[edit]
#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 )

[Bearbeiten] 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) [edit]
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) [edit]
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) [edit]
C documentation for lconv