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

Function ap_rxplus_match

server/util_regex.c:193–204  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

191 * it hasn't gone out-of-scope since the last ap_rxplus_exec
192 */
193AP_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}
205AP_DECLARE(char*) ap_rxplus_pmatch(apr_pool_t *pool, ap_rxplus_t *rx, int n)
206{
207 int len;

Callers 1

ap_rxplus_pmatchFunction · 0.85

Calls 1

ap_rxplus_nmatchFunction · 0.85

Tested by

no test coverage detected