Home
last modified time | relevance | path

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

/system/core/toolbox/upstream-netbsd/usr.bin/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.c290 regmatch_t pmatch; in procline() local
297 pmatch.rm_so = st; in procline()
298 pmatch.rm_eo = l->len; in procline()
309 l->len, &pmatch); in procline()
311 st = pmatch.rm_eo; in procline()
314 &pmatch, eflags); in procline()
316 st = pmatch.rm_eo; in procline()
322 (pmatch.rm_so != 0 || in procline()
323 (size_t)pmatch.rm_eo != l->len)) in procline()
326 if (fg_pattern[i].word && pmatch.rm_so != 0) { in procline()
[all …]