Lines Matching refs:begin
44 commp_skip_white_space(const char **begin, const char *end) in commp_skip_white_space() argument
46 while (*begin < end) { in commp_skip_white_space()
47 if (!isspace(**begin)) in commp_skip_white_space()
49 (*begin)++; in commp_skip_white_space()
60 commp_find_token(const char **begin, const char **current, const char *end, in commp_find_token() argument
63 *current = *begin; in commp_find_token()
72 if (*current == *begin) in commp_find_token()
82 commp_atoi(const char *begin, const char *end, int *num) in commp_atoi() argument
87 while (begin < end) { in commp_atoi()
88 if (isdigit(*begin)) { in commp_atoi()
89 *num = (*num * 10) + (*begin - '0'); in commp_atoi()
91 begin++; in commp_atoi()
96 if (!num_found || (begin != end)) in commp_atoi()
105 commp_strtoull(const char *begin, const char *end, uint64_t *num) in commp_strtoull() argument
110 while (begin < end) { in commp_strtoull()
111 if (isdigit(*begin)) { in commp_strtoull()
112 *num = (*num * 10) + (*begin - '0'); in commp_strtoull()
114 begin++; in commp_strtoull()
119 if (!num_found || (begin != end)) in commp_strtoull()
128 commp_strtoub(const char *begin, const char *end, uint8_t *num) in commp_strtoub() argument
133 while (begin < end) { in commp_strtoub()
134 if (isdigit(*begin)) { in commp_strtoub()
135 *num = (*num * 10) + (*begin - '0'); in commp_strtoub()
137 begin++; in commp_strtoub()
142 if (!num_found || (begin != end)) in commp_strtoub()
151 commp_atoui(const char *begin, const char *end, uint_t *num) in commp_atoui() argument
156 while (begin < end) { in commp_atoui()
157 if (isdigit(*begin)) { in commp_atoui()
158 *num = (*num * 10) + (*begin - '0'); in commp_atoui()
160 begin++; in commp_atoui()
165 if (!num_found || (begin != end)) in commp_atoui()
190 commp_time_to_secs(const char *begin, const char *end, uint64_t *num) in commp_time_to_secs() argument
213 if (commp_strtoull(begin, end, num) != 0) in commp_time_to_secs()