std::iswlower
De cppreference.com
<metanoindex/>
<tbody> </tbody>| Definido no cabeçalho <cwctype>
|
||
int iswlower( std::wint_t ch ); |
||
Verifica se o caráter dado larga é uma letra minúscula, ou seja, um dos
abcdefghijklmnopqrstuvwxyz ou qualquer letra minúscula específico para a localidade atual.Original:
Checks if the given wide character is a lowercase letter, i.e. one of
abcdefghijklmnopqrstuvwxyz or any lowercase letter specific to the current 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.
Parâmetros
| ch | - | caráter de largura
Original: wide character 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
Valor diferente de zero (
true) se o personagem é uma ampla letra minúscula, 0 (false) de outra forma.Original:
Non-zero value (
true) if the wide character is an lowercase letter, 0 (false) otherwise.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.
Exemplo
#include <iostream>
#include <cwctype>
#include <clocale>
int main()
{
wchar_t c = L'\u0444'; // Cyrillic small letter ef ('ф')
std::cout << std::hex << std::showbase << std::boolalpha;
std::cout << "in the default locale, iswlower(" << (std::wint_t)c << ") = "
<< (bool)std::iswlower(c) << '\n';
std::setlocale(LC_ALL, "en_US.utf8");
std::cout << "in Unicode locale, iswlower(" << (std::wint_t)c << ") = "
<< (bool)std::iswlower(c) << '\n';
}
Saída:
in the default locale, iswlower(0x444) = false
in Unicode locale, iswlower(0x444) = true
Veja também
checa se o caractere é classificado como minúsculo pela localização Original: checks if a character is classified as lowercase by a locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de função) | |
checa se o personagem é minúscula Original: checks if a character is 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) | |
Documentação C para iswlower
| |
