Lines Matching +defs:match +defs:line

260 static int match(constant char *pattern, size_t pattern_len, constant char *buf, int buf_len, constant char ***sp, constant char ***ep, int nsubs)
293 * Perform a pattern match with the previously compiled pattern.
298 static int match_pattern1(PATTERN_TYPE pattern, constant char *tpattern, constant char *line, size_t aline_len, constant char **sp, constant char **ep, int nsp, int notbol, int search_type)
307 matched = match(tpattern, strlen(tpattern), line, line_len, &sp, &ep, nsp);
315 matched = re_search(pattern, line, line_len, 0, line_len, &search_regs) >= 0;
318 *sp++ = line + search_regs.start[0];
319 *ep++ = line + search_regs.end[0];
333 matched = !regexec(pattern, line, RM_COUNT, rm, flags);
347 *sp++ = *ep++ = line;
351 *sp++ = line + rm[i].rm_so;
352 *ep++ = line + rm[i].rm_eo;
369 int mcount = pcre_exec(pattern, NULL, line, line_len,
378 *sp++ = *ep++ = line;
382 *sp++ = line + ovector[i++];
383 *ep++ = line + ovector[i++];
392 int mcount = pcre2_match(pattern, (PCRE2_SPTR)line, line_len,
405 *sp++ = *ep++ = line;
409 *sp++ = line + ovector[i++];
410 *ep++ = line + ovector[i++];
418 matched = (re_exec(line) == 1);
424 matched = ((*ep++ = regex(pattern, line)) != NULL);
430 matched = regexec2(pattern, line, notbol);
432 matched = regexec(pattern, line);
447 public int match_pattern(PATTERN_TYPE pattern, constant char *tpattern, constant char *line, size_t line_len, constant char **sp, constant char **ep, int nsp, int notbol, int search_type)
449 int matched = match_pattern1(pattern, tpattern, line, line_len, sp, ep, nsp, notbol, search_type);