• Home
  • Raw
  • Download

Lines Matching refs:preg

179 regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size)  in regerror()  argument
187 if (preg != NULL && (int)preg->re_erroffset != -1) in regerror()
190 (int)preg->re_erroffset); in regerror()
208 regfree(regex_t *preg) in regfree() argument
210 pcre2_match_data_free(preg->re_match_data); in regfree()
211 pcre2_code_free(preg->re_pcre2_code); in regfree()
232 regcomp(regex_t *preg, const char *pattern, int cflags) in regcomp() argument
240 patlen = ((cflags & REG_PEND) != 0)? (PCRE2_SIZE)(preg->re_endp - pattern) : in regcomp()
251 preg->re_cflags = cflags; in regcomp()
252 preg->re_pcre2_code = pcre2_compile((PCRE2_SPTR)pattern, patlen, options, in regcomp()
254 preg->re_erroffset = erroffset; in regcomp()
256 if (preg->re_pcre2_code == NULL) in regcomp()
273 (void)pcre2_pattern_info((const pcre2_code *)preg->re_pcre2_code, in regcomp()
275 preg->re_nsub = (size_t)re_nsub; in regcomp()
276 preg->re_match_data = pcre2_match_data_create(re_nsub + 1, NULL); in regcomp()
278 if (preg->re_match_data == NULL) in regcomp()
280 pcre2_code_free(preg->re_pcre2_code); in regcomp()
299 regexec(const regex_t *preg, const char *string, size_t nmatch, in regexec() argument
304 pcre2_match_data *md = (pcre2_match_data *)preg->re_match_data; in regexec()
310 ((regex_t *)preg)->re_erroffset = (size_t)(-1); /* Only has meaning after compile */ in regexec()
316 if ((preg->re_cflags & REG_NOSUB) != 0 || pmatch == NULL) nmatch = 0; in regexec()
335 rc = pcre2_match((const pcre2_code *)preg->re_pcre2_code, in regexec()