[libc-commits] [libc] [libc][wchar] implement wcslen (PR #124150)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Thu Jan 23 09:42:23 PST 2025


================
@@ -79,7 +79,8 @@ LIBC_INLINE size_t string_length_wide_read(const char *src) {
   return char_ptr - src;
 }
 
-LIBC_INLINE size_t string_length_byte_read(const char *src) {
+template<typename T>
+LIBC_INLINE size_t string_length_trivial(const T *src) {
----------------
nickdesaulniers wrote:

4f34e6452da3 PTAL

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


More information about the libc-commits mailing list