[libc-commits] [libc] [libc] Stop duplicating wcschr(). (PR #150661)

via libc-commits libc-commits at lists.llvm.org
Fri Jul 25 11:22:34 PDT 2025


================
@@ -31,11 +25,11 @@ LLVM_LIBC_FUNCTION(wchar_t *, wcstok,
   }
 
   wchar_t *tok_start, *tok_end;
-  for (tok_start = str; *tok_start != L'\0' && isADelimeter(*tok_start, delim);
+  for (tok_start = str; *tok_start != L'\0' && wcschr(delims, *tok_start);
----------------
enh-google wrote:

(done)

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


More information about the libc-commits mailing list