Namespace
Varianti

std::lconv

Da cppreference.com.
< cpp‎ | locale

 
 
Localizzazioni libreria
Impostazioni internazionali e sfaccettature
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
Carattere classificazione
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.
Conversioni
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 categoria classi di 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.
Facet categorie
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 specifici aspetti
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.
Codice di conversione sfaccettature
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
Membri tipi
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
Membri funzioni
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()
Funzioni membro statiche
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;
Il std::lconv classe contiene le regole di formattazione numerici e monetari come definito da una versione locale. Gli oggetti di questa struttura può essere ottenuta con std::localeconv. I membri di std::lconv sono valori di char tipo e di char* tipo. Ogni membro char* tranne decimal_point può essere puntato verso un carattere null (che è, in un C-string). I membri di tipo char sono tutti numeri non negativi, ognuna delle quali può essere CHAR_MAX se il valore corrispondente non è disponibile nella versione locale corrente C.
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.

Indice

[modifica] Membri oggetti

[modifica] Non monetarie parametri di formattazione numerici

char* decimal_point
il carattere utilizzato come separatore decimale
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.

(membro oggetto pubblico)
char* thousands_sep
il carattere utilizzato per separare gruppi di cifre prima della virgola decimale
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.

(membro oggetto pubblico)
char* grouping
una stringa i cui elementi indicano le dimensioni dei gruppi di cifre
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.

(membro oggetto pubblico)

[modifica] Monetarie parametri di formattazione numerici

char* mon_decimal_point
il carattere utilizzato come separatore decimale
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.

(membro oggetto pubblico)
char* mon_thousands_sep
il carattere utilizzato per separare gruppi di cifre prima della virgola decimale
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.

(membro oggetto pubblico)
char* mon_grouping
una stringa i cui elementi indicano le dimensioni dei gruppi di cifre
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.

(membro oggetto pubblico)
char* positive_sign
una stringa utilizzata per indicare non negativo quantità monetaria
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.

(membro oggetto pubblico)
char* negative_sign
una stringa utilizzata per indicare negativo quantità monetaria
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.

(membro oggetto pubblico)

[modifica] Locali parametri monetari di formattazione numerici

char* currency_symbol
il simbolo utilizzato per la valuta nella versione locale corrente C
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.

(membro oggetto pubblico)
char frac_digits
il numero di cifre dopo il punto decimale da visualizzare in una quantità monetaria
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.

(membro oggetto pubblico)
char p_cs_precedes
1 se currency_symbol è posto prima valore non negativo, se dopo 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.

(membro oggetto pubblico)
char n_cs_precedes
1 se currency_symbol è posto prima del valore negativo, 0 se dopo
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.

(membro oggetto pubblico)
char p_sep_by_space
indica la separazione di currency_symbol, positive_sign, e non negativo valore monetario
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.

(membro oggetto pubblico)
char n_sep_by_space
indica la separazione di currency_symbol, negative_sign, e il valore monetario negativo
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.

(membro oggetto pubblico)
char p_sign_posn
indica la posizione di positive_sign in un valore non negativo monetario
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.

(membro oggetto pubblico)
char n_sign_posn
indica la posizione di negative_sign in un valore monetario negativo
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.

(membro oggetto pubblico)

[modifica] Monetarie internazionali numerici di formattazione dei parametri

char* int_curr_symbol
la stringa utilizzata come nome della valuta internazionale nel locale corrente C
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.

(membro oggetto pubblico)
char int_frac_digits
il numero di cifre dopo la virgola decimale per la visualizzazione in una quantità monetaria internazionale
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.

(membro oggetto pubblico)
char int_p_cs_precedes
1 se currency_symbol è posto prima non negativo valore monetario internazionale, 0 se dopo
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.

(membro oggetto pubblico)
char int_n_cs_precedes
1 se currency_symbol è posto prima negativo valore monetario internazionale, 0 se dopo
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.

(membro oggetto pubblico)
char int_p_sep_by_space
indica la separazione di currency_symbol, positive_sign, e il valore non negativo monetario internazionale
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.

(membro oggetto pubblico)
char int_n_sep_by_space
indica la separazione di currency_symbol, negative_sign, e il valore negativo monetario internazionale
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.

(membro oggetto pubblico)
char int_p_sign_posn
indica la posizione di positive_sign in un valore non negativo monetario internazionale
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.

(membro oggetto pubblico)
char int_n_sign_posn
indica la posizione di negative_sign in un valore negativo monetario internazionale
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.

(membro oggetto pubblico)


I caratteri delle stringhe C-puntata da grouping e mon_grouping sono interpretati in base ai loro valori numerici. Quando il '\0' terminazione viene rilevato, l'ultimo valore visto si presume ripetere per il resto di cifre. Se CHAR_MAX si incontra, non altri numeri sono raggruppati. il raggruppamento tipico di tre cifre alla volta è "\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.
I valori di p_sep_by_space, n_sep_by_space, int_p_sep_by_space, int_n_sep_by_space sono interpretati come segue:
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
nessuno spazio separa il simbolo di valuta e il valore
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
firmare bastoni per il simbolo di valuta, il valore è separato da uno spazio
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
firmare bastoni per il valore. Simbolo della valuta è separato da uno spazio
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.
I valori di p_sign_posn, n_sign_posn, int_p_sign_posn, int_n_sign_posn sono interpretati come segue:
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
parentesi il valore e il simbolo di valuta sono usate per rappresentare il segno
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
firmare prima il valore e il simbolo di valuta
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
firmare dopo il valore e il simbolo di valuta
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
firmare prima il simbolo di valuta
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
firmare dopo il simbolo di valuta
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.

[modifica] Esempio

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

[modifica] Vedi anche

interroga dettagli di formattazione numerici e monetari del locale corrente
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.

(funzione) [edit]
definisce le regole di punteggiatura numerici
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.

(classe template) [edit]
definisce i parametri di formattazione monetari utilizzati da std::money_get e std::money_put
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.

(classe template) [edit]
C documentation for lconv