Home | History | Annotate | Download | only in libregex

Lines Matching full:match

4  * libc regex, providing regular expression match and replace facility.
46 bool op_regexec(regex_t const & regex, string const & str, regmatch_t * match,
49 return regexec(&regex, str.c_str(), nmatch, match, 0) != REG_NOMATCH;
192 regmatch_t match[max_match];
194 op_regexec(regexp.regexp, str, match, max_match) && iter < limit;
197 do_replace(str, regexp.replace, match);
205 regular_expression_replace::get_match(regmatch_t const * match, char idx) const
212 return match[sub_expr];
216 (string & str, string const & replace, regmatch_t const * match) const
229 regmatch_t const & matched = get_match(match,
233 // empty match: nothing todo
236 throw bad_regex("illegal match: " +
248 size_t first = match[0].rm_so;
249 size_t count = match[0].rm_eo - match[0].rm_so;