[libc-commits] [libc] [libc][wchar] implement wcslen (PR #124150)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Thu Jan 23 09:30:36 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:
help wanted renaming this. Also, should I use cpp::is_same for SFINAE for char and wchar_t?
https://github.com/llvm/llvm-project/pull/124150
More information about the libc-commits
mailing list