Lines Matching refs:preg
199 regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size) in regerror() argument
209 addlength = (preg != NULL && (int)preg->re_erroffset != -1)? in regerror()
215 sprintf(errbuf, "%s%s%-6d", message, addmessage, (int)preg->re_erroffset); in regerror()
234 regfree(regex_t *preg) in regfree() argument
236 (PUBL(free))(preg->re_pcre); in regfree()
257 regcomp(regex_t *preg, const char *pattern, int cflags) in regcomp() argument
273 preg->re_pcre = pcre_compile2(pattern, options, &errorcode, &errorptr, in regcomp()
275 preg->re_erroffset = erroffset; in regcomp()
280 if (preg->re_pcre == NULL) in regcomp()
286 (void)pcre_fullinfo((const pcre *)preg->re_pcre, NULL, PCRE_INFO_CAPTURECOUNT, in regcomp()
288 preg->re_nsub = (size_t)re_nsub; in regcomp()
311 regexec(const regex_t *preg, const char *string, size_t nmatch, in regexec() argument
320 (REAL_PCRE_OPTIONS((const pcre *)preg->re_pcre) & PCRE_NO_AUTO_CAPTURE) != 0; in regexec()
326 ((regex_t *)preg)->re_erroffset = (size_t)(-1); /* Only has meaning after compile */ in regexec()
365 rc = pcre_exec((const pcre *)preg->re_pcre, NULL, string + so, (eo - so), in regexec()