Lines Matching refs:top
123 char const *data, *cur, *top; in xdl_guess_lines() local
126 for (top = data + size; nl < sample && cur < top; ) { in xdl_guess_lines()
128 if (!(cur = memchr(cur, '\n', top - cur))) in xdl_guess_lines()
129 cur = top; in xdl_guess_lines()
253 char const *top, long flags) { in xdl_hash_record_with_whitespace() argument
258 for (; ptr < top && *ptr != '\n'; ptr++) { in xdl_hash_record_with_whitespace()
262 (ptr + 1 < top && ptr[1] == '\n')) in xdl_hash_record_with_whitespace()
268 while (ptr + 1 < top && XDL_ISSPACE(ptr[1]) in xdl_hash_record_with_whitespace()
271 at_eol = (top <= ptr + 1 || ptr[1] == '\n'); in xdl_hash_record_with_whitespace()
292 *data = ptr < top ? ptr + 1: ptr; in xdl_hash_record_with_whitespace()
297 unsigned long xdl_hash_record(char const **data, char const *top, long flags) { in xdl_hash_record() argument
302 return xdl_hash_record_with_whitespace(data, top, flags); in xdl_hash_record()
304 for (; ptr < top && *ptr != '\n'; ptr++) { in xdl_hash_record()
308 *data = ptr < top ? ptr + 1: ptr; in xdl_hash_record()