std::towlower — cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
| Déclaré dans l'en-tête <cwctype> |
||
|
|
||
Convertit le caractère large en minuscules, si possible .
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.
Paramètres
| ch | - | caractère large à convertir Original: wide character to be converted The text has been machine-translated via Google Translate. |
Retourne la valeur
Version en minuscules ou ch ch non modifiée si aucune version en minuscules est répertorié dans la locale courante 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.
Notes
Seulement 1:1 mappage de caractères peut être effectuée par cette fonction, par exemple, la lettre majuscule grecque Σ 'a deux formes minuscules, en fonction de la position dans un mot: «σ» et «ς». Un appel à std::towlower ne peut pas être utilisé pour obtenir la forme correcte minuscules dans cette affaire .
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.
Exemple
#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'; }
Résultat :
in the default locale, towlower(0x190) = 0x190 in Unicode locale, towlower(0x190) = 0x25b
Voir aussi
convertit le caractère large en majuscules Original: converts a wide character to uppercase The text has been machine-translated via Google Translate. (fonction) [edit] | |
| converts a character to lowercase using the ctype facet of a locale (fonction générique) [edit] | |
convertit un caractère en minuscule Original: converts a character to lowercase The text has been machine-translated via Google Translate. (fonction) [edit] | |
C documentation for towlower | |