Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/brpc
/ c16len
Function
c16len
src/butil/strings/string16.cc:35–41 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
33
}
34
35
size_t c16len(const char16* s) {
36
const char16 *s_orig = s;
37
while (*s) {
38
++s;
39
}
40
return s - s_orig;
41
}
42
43
const char16* c16memchr(const char16* s, char16 c, size_t n) {
44
while (n-- > 0) {
Callers
1
length
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected