MCPcopy Create free account
hub / github.com/apache/httpd / ap_pregcomp

Function ap_pregcomp

server/util.c:262–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262AP_DECLARE(ap_regex_t *) ap_pregcomp(apr_pool_t *p, const char *pattern,
263 int cflags)
264{
265 ap_regex_t *preg = apr_palloc(p, sizeof *preg);
266 int err = ap_regcomp(preg, pattern, cflags);
267 if (err) {
268 if (err == AP_REG_ESPACE)
269 ap_abort_on_oom();
270 return NULL;
271 }
272
273 apr_pool_cleanup_register(p, (void *) preg, regex_cleanup,
274 apr_pool_cleanup_null);
275
276 return preg;
277}
278
279AP_DECLARE(void) ap_pregfree(apr_pool_t *p, ap_regex_t *reg)
280{

Callers 15

set_bind_patternFunction · 0.85
add_proxyFunction · 0.85
add_passFunction · 0.85
proxysectionFunction · 0.85
cmd_rewritecondFunction · 0.85
cmd_rewriteruleFunction · 0.85
add_alias_internalFunction · 0.85
add_redirect_internalFunction · 0.85
match_versionFunction · 0.85
header_inout_cmdFunction · 0.85

Calls 2

ap_regcompFunction · 0.85
ap_abort_on_oomFunction · 0.85

Tested by

no test coverage detected