Lines Matching refs:rm
168 check_match (regmatch_t *rm, int idx, const char *string, in check_match() argument
173 if (rm[idx].rm_so == -1 && rm[idx].rm_eo == -1) in check_match()
179 if (rm[idx].rm_so == -1 || rm[idx].rm_eo == -1) in check_match()
187 if (rm[idx].rm_so != rm[idx].rm_eo) in check_match()
193 if (strncmp (string + rm[idx].rm_so, match + 1, strlen (match + 1) in check_match()
202 if (rm[idx].rm_eo - rm[idx].rm_so != strlen (match) in check_match()
203 || strncmp (string + rm[idx].rm_so, match, in check_match()
204 rm[idx].rm_eo - rm[idx].rm_so)) in check_match()
218 regmatch_t rm[10]; in test() local
271 if (regexec (&re, string, 10, rm, eflags)) in test()
291 ret = check_match (rm, 0, string, expect, fail); in test()
305 ret = check_match (rm, n, string, matches ? matches : "-", fail); in test()