If this blows up on you, see the notes in the header/apidoc * rx->match is a pointer and it's your responsibility to ensure * it hasn't gone out-of-scope since the last ap_rxplus_exec */
| 191 | * it hasn't gone out-of-scope since the last ap_rxplus_exec |
| 192 | */ |
| 193 | AP_DECLARE(void) ap_rxplus_match(ap_rxplus_t *rx, int n, int *len, |
| 194 | const char **match) |
| 195 | { |
| 196 | if (n >= 0 && n < ap_rxplus_nmatch(rx)) { |
| 197 | *match = rx->match + rx->pmatch[n].rm_so; |
| 198 | *len = rx->pmatch[n].rm_eo - rx->pmatch[n].rm_so; |
| 199 | } |
| 200 | else { |
| 201 | *len = -1; |
| 202 | *match = NULL; |
| 203 | } |
| 204 | } |
| 205 | AP_DECLARE(char*) ap_rxplus_pmatch(apr_pool_t *pool, ap_rxplus_t *rx, int n) |
| 206 | { |
| 207 | int len; |
no test coverage detected