std::towlower - 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. |
<metanoindex/>
<tbody> </tbody>
| Elemento definito nell'header <cwctype> |
||
|
|
||
Converte il carattere dato ampia in minuscolo, se possibile.
Original:
Converts the given wide character to lowercase, 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. |
Valore di ritorno
Versione minuscola del ch o ch non modificato se non versione minuscola è presente nella versione locale corrente C.
Original:
Lowercase version of ch or unmodified ch if no lowercase 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 lettera maiuscola greca 'Σ' ha due forme minuscole, a seconda della posizione in una parola: 'σ' e 'ς'. Una chiamata a std::towlower non può essere utilizzato per ottenere la forma corretta minuscola in questo caso.
Original:
Only 1:1 character mapping can be performed by this function, e.g. the Greek uppercase letter 'Σ' has two lowercase forms, depending on the position in a word: 'σ' and 'ς'. A call to std::towlower cannot be used to obtain the correct lowercase form in this case.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Esempio
#include <iostream> #include <cwctype> #include <clocale> int main() { wchar_t c = L'\u0190'; // Latin capital open E ('Ɛ') std::cout << std::hex << std::showbase; std::cout << "in the default locale, towlower(" << (std::wint_t)c << ") = " << std::towlower(c) << '\n'; std::setlocale(LC_ALL, "en_US.utf8"); std::cout << "in Unicode locale, towlower(" << (std::wint_t)c << ") = " << std::towlower(c) << '\n'; }
Output:
in the default locale, towlower(0x190) = 0x190 in Unicode locale, towlower(0x190) = 0x25b
Vedi anche
converte un carattere esteso in lettere maiuscole Original: converts a wide character to uppercase The text has been machine-translated via Google Translate. (funzione) [modifica] | |
| converts a character to lowercase using the ctype facet of a locale (funzione di modello) [modifica] | |
converte un carattere in minuscolo Original: converts a character to lowercase The text has been machine-translated via Google Translate. (funzione) [modifica] | |
C documentation for towlower | |