std::towupper

Da cppreference.com.
< cpp‎ | string‎ | wide

 
 
Stringhe libreria
Null-stringhe terminate
Original:
Null-terminated strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Byte stringhe
Multibyte stringhe
Stringhe larghe
Classi
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string
char_traits
 
Stringhe larghe null-terminated
Funzioni
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Carattere manipolazione
Original:
Character manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Le conversioni in formati numerici
Original:
Conversions to numeric formats
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Della gestione delle stringhe
Original:
String manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Matrice manipolazione
Original:
Array manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
wmemcpy
wmemmove
wmemcmp
wmemchr
wmemset
 
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.

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.

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

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

#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)[modifica]
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)[modifica]
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)[modifica]
C documentation for towupper
close