◐ Shell
clean mode source ↗

std::towlower - cppreference.com

De cppreference.com

Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.

La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí.

Definido en el archivo de encabezado <cwctype>

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

Convierte el carácter determinado de ancho en minúsculas, si es posible .

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 -

carácter ancho que desea 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.

Valor de retorno

Versión en minúsculas de ch ch o no modificado si no hay una versión en minúsculas aparece en el actual entorno nacional 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.

Notas

Sólo 01:01 asignación de caracteres se puede realizar por esta función, por ejemplo, la letra mayúscula griega "Σ" tiene dos formas minúsculas, dependiendo de la posición en una palabra: 'σ' y 'ς'. Una llamada a std::towlower no se puede utilizar para obtener la forma correcta minúsculas en este 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.

Ejemplo

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

Salida:

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

Ver también