| 14 | namespace dena { |
| 15 | |
| 16 | string_wref |
| 17 | get_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 | |
| 29 | template <typename T> T |
| 30 | atoi_tmpl_nocheck(const char *start, const char *finish) |
nothing calls this directly
no test coverage detected