Revert back to using captured regex execution as it seems to be more effecient as the ovector can be used for working space even if it is not used for captures.

Warn when captures are used in the regex, but "capture" not specified.
This commit is contained in:
brectanus
2007-03-27 15:32:53 +00:00
parent 59928bfe60
commit 891859f9c5
4 changed files with 23 additions and 11 deletions

View File

@@ -91,3 +91,11 @@ int msc_regexec(msc_regex_t *regex, const char *s, unsigned int slen,
return msc_regexec_capture(regex, s, slen, NULL, 0, error_msg);
}
/**
* Gets info on a compiled regex.
*/
int msc_fullinfo(msc_regex_t *regex, int what, void *where)
{
return pcre_fullinfo(regex->re, regex->pe, what, where);
}