◐ Shell
clean mode source ↗

std::towlower - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

Definido no cabeçalho

<cwctype>

std::wint_t towlower( std::wint_t ch );

Converte o caráter dado ampla para minúsculas, se possível.

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.

Parâmetros

ch -

caracteres largos para ser convertido

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.

Valor de retorno

Versão minúscula ch ou ch não modificada se nenhuma versão minúscula é listada na localidade C atual.

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.

Notas

Apenas 01:01 mapeamento de caracteres pode ser realizada por esta função, por exemplo, a letra maiúscula grega "Σ" tem duas formas minúsculas, dependendo da posição em uma palavra: "σ" e "ς". Uma chamada para std::towlower não pode ser utilizado para obter a forma correcta minúsculas neste 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.

Exemplo

#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';
}

Saída:

in the default locale, towlower(0x190) = 0x190
in Unicode locale, towlower(0x190) = 0x25b

Veja também

converte um caractere largo para maiúsculas

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.


(função) [edit]
Converte um caracter para minusculo usando o aspecto ctype de uma localidade
(modelo de função) [edit]

converte um caractere para minúsculo

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.


(função) [edit]

Documentação C para towlower