File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,7 @@ LIBC_INLINE size_t string_length_wide_read(const char *src) {
8282
8383// Returns the length of a string, denoted by the first occurrence
8484// of a null terminator.
85- template <typename T>
86- LIBC_INLINE size_t string_length (const T *src) {
85+ template <typename T> LIBC_INLINE size_t string_length (const T *src) {
8786#ifdef LIBC_COPT_STRING_UNSAFE_WIDE_READ
8887 // Unsigned int is the default size for most processors, and on x86-64 it
8988 // performs better than larger sizes when the src pointer can't be assumed to
Original file line number Diff line number Diff line change 1515
1616namespace LIBC_NAMESPACE_DECL {
1717
18- size_t wcslen (const wchar_t *src);
18+ size_t wcslen (const wchar_t *src);
1919
2020} // namespace LIBC_NAMESPACE_DECL
2121
Original file line number Diff line number Diff line change 66//
77// ===----------------------------------------------------------------------===//
88
9- #include " src/wchar/wcslen.h"
10- #include " hdr/types/wchar_t.h"
119#include " hdr/types/size_t.h"
10+ #include " hdr/types/wchar_t.h"
11+ #include " src/wchar/wcslen.h"
1212#include " test/UnitTest/Test.h"
1313
1414TEST (LlvmLibcWCSLenTest, EmptyString) {
You can’t perform that action at this time.
0 commit comments