Lines Matching refs:p
34 static int match_one(char *s, const char *p, substring_t args[]) in match_one() argument
39 if (!p) in match_one()
44 meta = strchr(p, '%'); in match_one()
46 return strcmp(p, s) == 0; in match_one()
48 if (strncmp(p, s, meta-p)) in match_one()
51 s += meta - p; in match_one()
52 p = meta + 1; in match_one()
54 if (isdigit(*p)) in match_one()
55 len = simple_strtoul(p, (char **) &p, 10); in match_one()
56 else if (*p == '%') { in match_one()
59 p++; in match_one()
67 switch (*p++) { in match_one()
117 const struct match_token *p; in match_token() local
119 for (p = table; !match_one(s, p->pattern, args) ; p++) in match_token()
122 return p->token; in match_token()
286 const char *p = pattern; in match_wildcard() local
290 switch (*p) { in match_wildcard()
293 p++; in match_wildcard()
298 if (!*++p) in match_wildcard()
300 pattern = p; in match_wildcard()
303 if (*s == *p) { in match_wildcard()
305 p++; in match_wildcard()
311 p = pattern; in match_wildcard()
317 if (*p == '*') in match_wildcard()
318 ++p; in match_wildcard()
319 return !*p; in match_wildcard()