Searched refs:preg (Results 1 - 4 of 4) sorted by relevance

/bionic/libc/regex/
H A Dregfree.c49 regfree(regex_t *preg) argument
53 if (preg->re_magic != MAGIC1) /* oops */
56 g = preg->re_g;
59 preg->re_magic = 0; /* mark it invalid */
H A Dregerror.c79 regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size) argument
88 s = regatoi(preg, convbuf, sizeof convbuf);
118 regatoi(const regex_t *preg, char *localbuf, int localbufsize) argument
123 if (strcmp(r->name, preg->re_endp) == 0)
H A Dregexec.c139 regexec(const regex_t *preg, const char *string, size_t nmatch, argument
142 struct re_guts *g = preg->re_g;
149 if (preg->re_magic != MAGIC1 || g->magic != MAGIC2)
H A Dregcomp.c149 regcomp(regex_t *preg, const char *pattern, int cflags) argument
167 if (preg->re_endp < pattern)
169 len = preg->re_endp - pattern;
230 preg->re_nsub = g->nsub;
231 preg->re_g = g;
232 preg->re_magic = MAGIC1;
241 regfree(preg);

Completed in 52 milliseconds