Home | History | Annotate | Download | only in posix

Lines Matching full:matches

80 // Show matches in one file
98 regmatch_t matches;
109 // Loop through matches in this line
113 // Handle non-regex matches
134 matches.rm_so = (s-line);
135 skip = matches.rm_eo = (s-line)+strlen(seek->arg);
138 rc = regexec((regex_t *)toybuf, start, 1, &matches,
140 skip = matches.rm_eo;
144 if (matches.rm_so || line[matches.rm_eo]) rc = 1;
149 if ((start+matches.rm_so)!=line) {
150 c = start[matches.rm_so-1];
154 c = start[matches.rm_eo];
158 start += matches.rm_so+1;
166 if (rc) skip = matches.rm_eo = strlen(start);
167 else if (!matches.rm_so) {
170 } else matches.rm_eo = matches.rm_so;
173 matches.rm_eo = strlen(start);
175 matches.rm_so = 0;
193 if (matches.rm_eo == matches.rm_so)
198 ((toys.optflags & FLAG_o) ? matches.rm_so : 0);
212 } else outline(start+matches.rm_so, ':', name, lcount, bcount,
213 matches.rm_eo-matches.rm_so);