std::towlower
De cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Déclaré dans l'en-tête <cwctype>
|
||
std::wint_t towlower( std::wint_t ch ); |
||
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.
You can help to correct and verify the translation. Click here for instructions.
Sommaire |
[modifier] Paramètres
ch | - | caractère large à convertir
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. |
[modifier] 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.
You can help to correct and verify the translation. Click here for instructions.
[modifier] 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.
You can help to correct and verify the translation. Click here for instructions.
[modifier] 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
[modifier] 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. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
converts a character to lowercase using the ctype facet of a locale (fonction générique) | |
convertit un caractère en minuscule Original: converts a 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. (fonction) | |
C documentation for towlower
|