Lines Matching refs:p
14 is_comment_line(const char* p) in is_comment_line() argument
16 while (*p && isspace(*p)) { in is_comment_line()
17 p++; in is_comment_line()
19 return *p == '#'; in is_comment_line()
34 is_whitespace_line(const char* p) in is_whitespace_line() argument
36 while (*p) { in is_whitespace_line()
37 if (!isspace(*p)) { in is_whitespace_line()
40 p++; in is_whitespace_line()
46 is_exclude_line(const char* p) { in is_exclude_line() argument
47 while (*p) { in is_exclude_line()
48 if (*p == '-') { in is_exclude_line()
51 else if (isspace(*p)) { in is_exclude_line()
52 p++; in is_exclude_line()
62 split_line(const char* p, vector<string>* out) in split_line() argument
64 const char* q = p; in split_line()
66 while (*p) { in split_line()
67 if (*p == '#') { in split_line()
74 if (!isspace(*p)) { in split_line()
75 q = p; in split_line()
80 if (isspace(*p)) { in split_line()
81 if (q != p) { in split_line()
82 out->push_back(string(q, p-q)); in split_line()
88 p++; in split_line()
91 out->push_back(string(q, p-q)); in split_line()
167 char *p, *q; in read_list_file() local
212 p = buf; in read_list_file()
215 while (p<q) { in read_list_file()
216 if (*p == '\r' || *p == '\n') { in read_list_file()
217 *p = '\0'; in read_list_file()
220 p++; in read_list_file()
224 p = buf; in read_list_file()
226 int len = strlen(p); in read_list_file()
227 q = p + len + 1; in read_list_file()
228 if (is_whitespace_line(p) || is_comment_line(p)) { in read_list_file()
231 else if (is_exclude_line(p)) { in read_list_file()
232 while (*p != '-') p++; in read_list_file()
233 p++; in read_list_file()
234 excludes->push_back(string(p)); in read_list_file()
239 split_line(p, &words); in read_list_file()
275 i+1, p); in read_list_file()
279 p = q; in read_list_file()