[libc-commits] [libc] [libc] add wmemchr, wcslen, wcschr, wcsrchr, wcspbrk, wcsstr (PR #121183)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Thu Jan 23 15:26:38 PST 2025


nickdesaulniers wrote:

While wcslen was easy to spin out, the others are running into an issue in testing; our testing framework needs to be able to print the expected vs actual if the test fails.  It looks like we'd need to implement wcstombs FIRST in order to use that from the testing framework, to convert the wide character strings into something we could print. wcstombs can be implemented in terms of wcsrtombs, which can be implemented in terms of wcsnrtombs, which can be implemented in terms of wcrtomb, which can implemented in terms of `c32rtomb` (unixes) or `c16rtomb` (windows).  I'll file some bugs about getting those implemented first.

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


More information about the libc-commits mailing list