Lines Matching refs:p
188 const char *p = str + 20; in tool_header_cb() local
196 while((p < end) && *p && !ISALPHA(*p)) in tool_header_cb()
197 p++; in tool_header_cb()
198 if(p > end - 9) in tool_header_cb()
201 if(memcmp(p, "filename=", 9)) { in tool_header_cb()
203 while((p < end) && *p && (*p != ';')) in tool_header_cb()
204 p++; in tool_header_cb()
205 if((p < end) && *p) in tool_header_cb()
210 p += 9; in tool_header_cb()
212 len = cb - (size_t)(p - str); in tool_header_cb()
213 filename = parse_filename(p, len); in tool_header_cb()
325 char *p; in parse_filename() local
336 p = copy; in parse_filename()
337 if(*p == '\'' || *p == '"') { in parse_filename()
339 stop = *p; in parse_filename()
340 p++; in parse_filename()
346 q = strchr(p, stop); in parse_filename()
351 q = strrchr(p, '/'); in parse_filename()
353 p = q + 1; in parse_filename()
354 if(!*p) { in parse_filename()
363 q = strrchr(p, '\\'); in parse_filename()
365 p = q + 1; in parse_filename()
366 if(!*p) { in parse_filename()
373 q = strchr(p, '\r'); in parse_filename()
377 q = strchr(p, '\n'); in parse_filename()
381 if(copy != p) in parse_filename()
382 memmove(copy, p, strlen(p) + 1); in parse_filename()