[libc-commits] [libc] [libc][wchar] implement wcslen (PR #124150)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Thu Jan 23 09:31:53 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) {
----------------
jhuber6 wrote:
I think it's fine, but we want to have the main entry be `internal::string_length`.
https://github.com/llvm/llvm-project/pull/124150
More information about the libc-commits
mailing list