Lines Matching refs:matches
288 static int find_field_offset(struct btf *btf, char *pattern, regmatch_t *matches)
290 int type_sz = matches[1].rm_eo - matches[1].rm_so;
291 int field_sz = matches[2].rm_eo - matches[2].rm_so;
292 char *type = pattern + matches[1].rm_so;
293 char *field = pattern + matches[2].rm_so;
453 /* Test if `text` matches `pattern`. Pattern consists of the following elements:
491 regmatch_t matches[3];
553 if (regexec(field_regex, pattern, 3, matches, 0) != 0) {
558 field_offset = find_field_offset(btf, pattern, matches);
562 pattern += matches[0].rm_eo;
580 if (regexec(field_regex, pattern, 3, matches, 0) == 0) {
584 field_offset = find_field_offset(btf, pattern, matches);
591 (int)matches[0].rm_eo, pattern, field_offset);
595 pattern += matches[0].rm_eo;
604 if (regexec(ident_regex, pattern, 1, matches, 0) == 0) {
605 if (strncmp(pattern, text, matches[0].rm_eo) != 0)
608 pattern += matches[0].rm_eo;
609 text += matches[0].rm_eo;