• Home
  • Raw
  • Download

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()
76 state = (*p == '"') ? IN_QUOTE : TEXT; in split_line()
80 if (*p == '"') { in split_line()
86 if (state != IN_QUOTE && isspace(*p)) { in split_line()
87 if (q != p) { in split_line()
89 size_t len = p-q; in split_line()
100 p++; in split_line()
104 size_t len = p-q; in split_line()
187 char *p, *q; in read_list_file() local
232 p = buf; in read_list_file()
235 while (p<q) { in read_list_file()
236 if (*p == '\r' || *p == '\n') { in read_list_file()
237 *p = '\0'; in read_list_file()
240 p++; in read_list_file()
244 p = buf; in read_list_file()
246 int len = strlen(p); in read_list_file()
247 q = p + len + 1; in read_list_file()
248 if (is_whitespace_line(p) || is_comment_line(p)) { in read_list_file()
251 else if (is_exclude_line(p)) { in read_list_file()
252 while (*p != '-') p++; in read_list_file()
253 p++; in read_list_file()
254 excludes->push_back(string(p)); in read_list_file()
259 split_line(p, &words); in read_list_file()
305 filename.c_str(), i+1, p, errstr.c_str()); in read_list_file()
316 p = q; in read_list_file()