We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 259f776 commit d43e66dCopy full SHA for d43e66d
libc/src/wchar/wchar_utils.h
@@ -14,6 +14,9 @@
14
#include "src/__support/common.h"
15
#include "src/__support/macros/attributes.h" // LIBC_INLINE
16
17
+namespace LIBC_NAMESPACE_DECL {
18
+namespace internal {
19
+
20
bool check_span(wchar_t c, const wchar_t *str) {
21
for (int n = 0; str[n]; ++n) {
22
if (str[n] == c)
@@ -22,9 +25,6 @@ bool check_span(wchar_t c, const wchar_t *str) {
25
return false;
23
26
}
24
27
-namespace LIBC_NAMESPACE_DECL {
-namespace internal {
-
28
// To avoid duplicated code, call this with true for wcscspn and call with false
29
// for wcsspn
30
LIBC_INLINE size_t inline_wcsspn(const wchar_t *s1, const wchar_t *s2,
0 commit comments