◐ Shell
clean mode source ↗

std::towupper - cppreference.com

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.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

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.

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.

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.

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.

Esempio

Il lettera 's' (U 017 F) latino è la forma alternativa minuscolo di 'S' (U 0053)

Original:

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

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