Home
last modified time | relevance | path

Searched refs:pmatch (Results 1 – 3 of 3) sorted by relevance

/system/core/toolbox/grep/
Dfastgrep.c205 grep_search(fastgrep_t *fg, const unsigned char *data, size_t len, regmatch_t *pmatch) in grep_search() argument
210 if (pmatch->rm_so == (ssize_t)len) in grep_search()
213 if (fg->bol && pmatch->rm_so != 0) { in grep_search()
214 pmatch->rm_so = len; in grep_search()
215 pmatch->rm_eo = len; in grep_search()
233 pmatch->rm_so = j; in grep_search()
234 pmatch->rm_eo = j + fg->len; in grep_search()
244 pmatch->rm_so = j - fg->len; in grep_search()
245 pmatch->rm_eo = j; in grep_search()
256 j = pmatch->rm_so; in grep_search()
[all …]
Dutil.c289 regmatch_t pmatch; in procline() local
296 pmatch.rm_so = st; in procline()
297 pmatch.rm_eo = l->len; in procline()
308 l->len, &pmatch); in procline()
310 st = pmatch.rm_eo; in procline()
313 &pmatch, eflags); in procline()
315 st = pmatch.rm_eo; in procline()
321 (pmatch.rm_so != 0 || in procline()
322 (size_t)pmatch.rm_eo != l->len)) in procline()
325 if (fg_pattern[i].word && pmatch.rm_so != 0) { in procline()
[all …]
/system/core/sh/
Dexpand.c110 STATIC int pmatch(char *, char *, int);
1335 return 1 - pmatch(pattern + 2, string); in patmatch()
1338 return pmatch(pattern, string, squoted); in patmatch()
1343 pmatch(char *pattern, char *string, int squoted) in pmatch() function
1386 if (pmatch(p, q, squoted)) in pmatch()