Lines Matching refs:end

254 /* Skip any space or tab character from 'p' until 'end' is reached.
258 skip_spaces(const char* p, const char* end)
260 while (p < end && is_space(*p))
266 /* Skip any non-space and non-tab character from 'p' until 'end'.
270 skip_non_spaces(const char* p, const char* end)
272 while (p < end && !is_space(*p))
278 /* Find the first occurence of 'ch' between 'p' and 'end'
279 * Return its position, or 'end' if none is found.
282 find_first(const char* p, const char* end, char ch)
284 while (p < end && *p != ch)
291 * ending at 'end' equals 'name'. Return new position (after name)
297 compare_name(const char* p, const char* end, const char* name)
300 if (name == NULL || name[0] == '\0' || p == end)
308 if (p >= end || is_space(*p))
318 /* must be followed by end of line or space */
319 if (p < end && !is_space(*p))
329 * until 'end' is reached. Updates '*pp' on exit.
334 parse_spaces(const char** pp, const char* end)
338 if (p >= end || !is_space(*p)) {
342 p = skip_spaces(p, end);
347 /* Parse a positive decimal number starting from '*pp' until 'end'
358 parse_positive_decimal(const char** pp, const char* end)
364 if (p >= end || *p < '0' || *p > '9') {
369 while (p < end) {
436 /* find end of current line and start of next one */
437 const char* end = find_first(p, buffer_end, '\n');
438 const char* next = (end < buffer_end) ? end + 1 : buffer_end;
443 p = compare_name(p, end, pkgName);
448 if (parse_spaces(&p, end) < 0)
452 uid = parse_positive_decimal(&p, end);
459 if (parse_spaces(&p, end) < 0)
463 debugFlag = parse_positive_decimal(&p, end);
476 if (parse_spaces(&p, end) < 0)
482 q = skip_non_spaces(p, end);