Please also provide overloads for char8_t, char16_t and char32_t that are always based on Unicode, unlike the overloads for char and wchar_t which will be locale-dependent.

On 23-Dec-2023, at 20:59, Wim Leflere via Std-Proposals <> wrote:

Would there be interest in having more idiomatic versions of the character check functions (from cctype & cwctype)?

"int std::islower(int ch)" and "int std::iswlower(std::wint_t ch)"
"bool std::is_lower(char ch)" and "bool std::is_lower(wchar_t ch)"

Using overloads allows use in a more generic way.
The implementation could call the C function (in the correct way).


Std-Proposals mailing list