| 455 | #define AP_PREGSUB_MAXLEN (HUGE_STRING_LEN * 8) |
| 456 | #endif |
| 457 | AP_DECLARE(char *) ap_pregsub(apr_pool_t *p, const char *input, |
| 458 | const char *source, apr_size_t nmatch, |
| 459 | ap_regmatch_t pmatch[]) |
| 460 | { |
| 461 | char *result; |
| 462 | apr_status_t rc = regsub_core(p, &result, NULL, input, source, nmatch, |
| 463 | pmatch, AP_PREGSUB_MAXLEN); |
| 464 | if (rc != APR_SUCCESS) |
| 465 | result = NULL; |
| 466 | return result; |
| 467 | } |
| 468 | |
| 469 | AP_DECLARE(apr_status_t) ap_pregsub_ex(apr_pool_t *p, char **result, |
| 470 | const char *input, const char *source, |
no test coverage detected