lconv
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>| Elemento definito nell'header <locale.h>
|
||
struct lconv; |
||
Il
lconv struct contiene le regole di formattazione numerici e monetari come definito da una versione locale. Gli oggetti di questa struttura può essere ottenuta con localeconv. I membri di 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 struct
lconv contains numeric and monetary formatting rules as defined by a C locale. Objects of this struct may be obtained with localeconv. The members of 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.
Membri oggetti
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. (attributo 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. (attributo 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. (attributo pubblico) |
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. (attributo 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. (attributo 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. (attributo 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. (attributo 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. (attributo pubblico) |
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. (attributo 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. (attributo pubblico) |
char p_cs_precedes |
1 se currency_symbol è posto prima valore non negativo, se dopo 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. (attributo pubblico) |
char n_cs_precedes |
1 se currency_symbol è posto prima del valore negativo, 0 se dopoOriginal: 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. (attributo pubblico) |
char p_sep_by_space |
indica la separazione di currency_symbol, positive_sign, e non negativo valore monetarioOriginal: 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. (attributo pubblico) |
char n_sep_by_space |
indica la separazione di currency_symbol, negative_sign, e il valore monetario negativoOriginal: 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. (attributo pubblico) |
char p_sign_posn |
indica la posizione di positive_sign in un valore non negativo monetarioOriginal: 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. (attributo pubblico) |
char n_sign_posn |
indica la posizione di negative_sign in un valore monetario negativoOriginal: 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. (attributo pubblico) |
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. (attributo 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. (attributo pubblico) |
char int_p_cs_precedes |
1 se currency_symbol è posto prima non negativo valore monetario internazionale, 0 se dopoOriginal: 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. (attributo pubblico) |
char int_n_cs_precedes |
1 se currency_symbol è posto prima negativo valore monetario internazionale, 0 se dopoOriginal: 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. (attributo pubblico) |
char int_p_sep_by_space |
indica la separazione di currency_symbol, positive_sign, e il valore non negativo monetario internazionaleOriginal: 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. (attributo pubblico) |
char int_n_sep_by_space |
indica la separazione di currency_symbol, negative_sign, e il valore negativo monetario internazionaleOriginal: 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. (attributo pubblico) |
char int_p_sign_posn |
indica la posizione di positive_sign in un valore non negativo monetario internazionaleOriginal: 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. (attributo pubblico) |
char int_n_sign_posn |
indica la posizione di negative_sign in un valore negativo monetario internazionaleOriginal: 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. (attributo 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.
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.
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.
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. |
Esempio
| This section is incomplete Reason: no example |
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) | |
C++ documentation for lconv
| |