std::towupper
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 <cwctype> | ||
std::wint_t towupper( std::wint_t ch ); | ||
Converte il carattere dato ampia in maiuscolo, se possibile.
Original:
Converts the given wide character to uppercase, if possible.
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
ch | - | carattere esteso da convertire Original: wide character to be converted 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
Versione maiuscola di
ch
o ch
non modificato se non versione maiuscola è presente nella versione locale corrente C.Original:
Uppercase version of
ch
or unmodified ch
if no uppercase version is listed 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.
[modifica]Note
Solo 1:1 mapping carattere può essere effettuata da questa funzione, ad esempio la forma maiuscola di 'ß' è (con qualche eccezione) la stringa di due caratteri "SS", che non può essere ottenuta con std::towupper.
Original:
Only 1:1 character mapping can be performed by this function, e.g. the uppercase form of 'ß' is (with some exceptions) the two-character string "SS", which cannot be obtained by std::towupper.
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
Il lettera 's' (U 017 F) latino è la forma alternativa minuscolo di 'S' (U 0053)
Original:
The latin lettera 's' (U 017 F) is the alternative lowercase form of 'S' (U+0053)
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.
#include <iostream>#include <cwctype>#include <clocale> int main(){wchar_t c = L'\u017f';// Latin small letter Long S ('ſ') std::cout<<std::hex<<std::showbase;std::cout<<"in the default locale, towupper("<<(std::wint_t)c <<") = "<<std::towupper(c)<<'\n';std::setlocale(LC_ALL, "en_US.utf8");std::cout<<"in Unicode locale, towupper("<<(std::wint_t)c <<") = "<<std::towupper(c)<<'\n';}
Output:
in the default locale, towupper(0x17f) = 0x17f in Unicode locale, towupper(0x17f) = 0x53
[modifica]Vedi anche
converte un carattere esteso in minuscolo Original: converts a wide character to lowercase The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
converte un carattere in maiuscolo utilizzando il facet CType di un locale Original: converts a character to uppercase using the ctype facet of a locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
converte un carattere in maiuscolo Original: converts a character to uppercase 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 towupper |