Home | History | Annotate | Download | only in pcre

Lines Matching refs:preg

188 regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size)
198 addlength = (preg != NULL && (int)preg->re_erroffset != -1)?
204 sprintf(errbuf, "%s%s%-6d", message, addmessage, (int)preg->re_erroffset);
223 regfree(regex_t *preg)
225 (pcre_free)(preg->re_pcre);
237 preg points to a structure for recording the compiled expression
246 regcomp(regex_t *preg, const char *pattern, int cflags)
261 preg->re_pcre = pcre_compile2(pattern, options, &errorcode, &errorptr,
263 preg->re_erroffset = erroffset;
268 if (preg->re_pcre == NULL)
274 preg->re_nsub = pcre_info((const pcre *)preg->re_pcre, NULL, NULL);
297 regexec(const regex_t *preg, const char *string, size_t nmatch,
306 (((const pcre *)preg->re_pcre)->options & PCRE_NO_AUTO_CAPTURE) != 0;
312 ((regex_t *)preg)->re_erroffset = (size_t)(-1); /* Only has meaning after compile */
351 rc = pcre_exec((const pcre *)preg->re_pcre, NULL, string + so, (eo - so),