std::iswlower

Header: <cwctype>

Checks if the given wide character is a lowercase letter, i.e. one of abcdefghijklmnopqrstuvwxyz or any lowercase letter specific to the current locale.

# Declarations

int iswlower( std::wint_t ch );

# Parameters

# Return value

Non-zero value if the wide character is a lowercase letter, zero otherwise.

# Notes

ISO 30112 specifies which Unicode characters are include in POSIX lower category.

# Example

#include <clocale>
#include <cwctype>
#include <iostream>
 
int main()
{
    wchar_t c = L'\u0444'; // Cyrillic small letter ef ('ф')
 
    std::cout << std::hex << std::showbase << std::boolalpha
              << "in the default locale, iswlower("
              << static_cast<std::wint_t>(c) << ") = "
              << static_cast<bool>(std::iswlower(c)) << '\n';
 
    std::setlocale(LC_ALL, "en_US.utf8");
    std::cout << "in Unicode locale, iswlower("
              << static_cast<std::wint_t>(c) << ") = "
              << static_cast<bool>(std::iswlower(c)) << '\n';
}

# See also