Lines Matching refs:match
62 regmatch_t match[20];
92 err = regexec (&re, tests[cnt].str, 20, match, 0);
97 puts ("no match, OK");
100 puts ("no match, FAIL");
106 if (match[0].rm_so == 0 && tests[cnt].start == 0
107 && match[0].rm_eo == 0 && tests[cnt].end == 0)
108 puts ("match, OK");
109 else if (match[0].rm_so + 1 == tests[cnt].start
110 && match[0].rm_eo == tests[cnt].end)
111 puts ("match, OK");
114 printf ("wrong match (%d to %d): FAIL\n",
115 match[0].rm_so, match[0].rm_eo);