std::localeconv
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. |
Elemento definito nell'header <clocale>
|
||
std::lconv* localeconv(); |
||
La funzione
localeconv
ottiene un puntatore a un oggetto statico di std::lconv tipo, che rappresenta le regole di formattazione numerici e monetari del locale corrente C.Original:
The
localeconv
function obtains a pointer to a static object of type std::lconv, which represents numeric and monetary formatting rules of 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.
Indice |
[modifica] Parametri
(Nessuno)
Original:
(none)
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.
[modifica] Valore di ritorno
Pointer to the current std::lconv object.
[modifica] Note
Modifica dei riferimenti agli oggetti attraverso il puntatore restituito è un comportamento indefinito.
Original:
Modifying the object references through the returned pointer is undefined behavior.
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.
std::localeconv
modifica un oggetto statico, chiamandolo da diversi thread senza sincronizzazione è un comportamento indefinito.Original:
std::localeconv
modifies a static object, calling it from different threads without synchronization is undefined behavior.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.
[modifica] Esempio
#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
ottiene e imposta la localizzazione corrente C Original: gets and sets 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. (funzione) | |
dettagli di formattazione, restituiti da std::localeconv Original: formatting details, returned by std::localeconv The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe) | |
C documentation for localeconv
|