std::towlower
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>| definiert in Header <cwctype>
|
||
std::wint_t towlower( std::wint_t ch ); |
||
Konvertiert das angegebene wide character in Kleinbuchstaben, wenn möglich .
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.
Parameter
| ch | - | breites Zeichen umgewandelt werden
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. |
Rückgabewert
Kleinbuchstaben Version
ch oder unmodifizierte ch wenn keine Kleinbuchstaben Version wird in der aktuellen C locale aufgeführt .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.
Notes
Nur 1:1 Zeichenzuordnung kann durch diese Funktion durchgeführt werden, zB der griechische Großbuchstabe 'Σ' hat zwei Kleinbuchstaben Formen, abhängig von der Position in einem Wort: "σ" und "ς". Ein Aufruf std::towlower kann nicht verwendet werden, um die korrekte Kleinbuchstaben Form in diesem Fall zu erhalten .
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.
Beispiel
#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
