[libc-commits] [libc] [libc] Add `ctype.h` locale variants (PR #102711)

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Sat Aug 10 18:38:25 PDT 2024


================
@@ -14,8 +14,6 @@
 
 namespace LIBC_NAMESPACE_DECL {
 
-// TODO: Currently restricted to default locale.
-// These should be extended using locale information.
 LLVM_LIBC_FUNCTION(int, isalpha, (int c)) {
   return static_cast<int>(internal::isalpha(static_cast<unsigned>(c)));
----------------
SchrodingerZhu wrote:

how about adding assertions to check if the local is default? Would that require too much work?

https://github.com/llvm/llvm-project/pull/102711


More information about the libc-commits mailing list