Skip to content

Commit d43e66d

Browse files
author
Sriya Pratipati
committed
moved check_span into namespaces
1 parent 259f776 commit d43e66d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libc/src/wchar/wchar_utils.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
#include "src/__support/common.h"
1515
#include "src/__support/macros/attributes.h" // LIBC_INLINE
1616

17+
namespace LIBC_NAMESPACE_DECL {
18+
namespace internal {
19+
1720
bool check_span(wchar_t c, const wchar_t *str) {
1821
for (int n = 0; str[n]; ++n) {
1922
if (str[n] == c)
@@ -22,9 +25,6 @@ bool check_span(wchar_t c, const wchar_t *str) {
2225
return false;
2326
}
2427

25-
namespace LIBC_NAMESPACE_DECL {
26-
namespace internal {
27-
2828
// To avoid duplicated code, call this with true for wcscspn and call with false
2929
// for wcsspn
3030
LIBC_INLINE size_t inline_wcsspn(const wchar_t *s1, const wchar_t *s2,

0 commit comments

Comments
 (0)