std::basic_ios::narrow
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. |
char narrow( char_type c, char dfault )const; | ||
Converte una corrente specifica delle impostazioni locali
c
carattere situato a norma equivalente. Il risultato viene convertito da char_type
a char
se necessario. Se la conversione non può essere eseguita, la funzione restituisce dfault
.Original:
Converts a current locale-specific character
c
to its standard equivalent. The result is converted from char_type
to char
if needed. If no conversion can be performed, the function returns dfault
.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.
Chiama efficacemente std::use_facet< std::ctype<char_type>>(getloc()).narrow(c, dfault);.
Original:
Effectively calls std::use_facet< std::ctype<char_type>>(getloc()).narrow(c, dfault);.
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]Parametri
c | - | carattere da convertire Original: character to convert The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
dfault | - | carattere da restituire se la conversione non è riuscita Original: character to return if the conversion was unsuccessful The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifica]Valore di ritorno
Carattere convertito nel suo equivalente standard e poi a char.
dfault
viene restituito se la conversione non riesce.Original:
Character converted to its standard equivalent and then to char.
dfault
is returned if the conversion fails.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]Vedi anche
widens characters (metodo pubblico) |