MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / get_token

Function get_token

libhsclient/string_util.cpp:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace dena {
15
16string_wref
17get_token(char *& wp, char *wp_end, char delim)
18{
19 char *const wp_begin = wp;
20 char *const p = memchr_char(wp_begin, delim, wp_end - wp_begin);
21 if (p == 0) {
22 wp = wp_end;
23 return string_wref(wp_begin, wp_end - wp_begin);
24 }
25 wp = p + 1;
26 return string_wref(wp_begin, p - wp_begin);
27}
28
29template <typename T> T
30atoi_tmpl_nocheck(const char *start, const char *finish)

Callers

nothing calls this directly

Calls 2

memchr_charFunction · 0.85
string_wrefClass · 0.85

Tested by

no test coverage detected