Lines Matching defs:pool
31 AP_DECLARE(ap_rxplus_t*) ap_rxplus_compile(apr_pool_t *pool,
46 ap_rxplus_t *ret = apr_pcalloc(pool, sizeof(ap_rxplus_t));
70 apr_pool_cleanup_register(pool, &ret->rx, rxplus_cleanup,
80 rxstr = apr_pstrndup(pool, str, endp-str);
92 ret->subs = apr_pstrndup(pool, str, (endp-str));
109 apr_pool_cleanup_register(pool, &ret->rx, rxplus_cleanup,
134 ret->pmatch = apr_palloc(pool, ret->nmatch*sizeof(ap_regmatch_t));
139 AP_DECLARE(int) ap_rxplus_exec(apr_pool_t *pool, ap_rxplus_t *rx,
153 *newpattern = ap_pregsub(pool, rx->subs, pattern,
165 ret += ap_rxplus_exec(pool, rx, remainder, &subs);
172 subs = apr_palloc(pool, strlen(pattern) + 1 + diffsz);
203 AP_DECLARE(char*) ap_rxplus_pmatch(apr_pool_t *pool, ap_rxplus_t *rx, int n)
208 return apr_pstrndup(pool, match, len);