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 <std-proposals@lists.isocpp.org> wrote:

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

Example
Replace
"int std::islower(int ch)" and "int std::iswlower(std::wint_t ch)"
With
"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).

Wim

--
Std-Proposals mailing list
Std-Proposals@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals