Lines Matching refs:pattern
32 const char *pattern)
41 * If we ever use this with non-string pattern we'll need an extra check
44 const char *str = pattern;
49 if (!apr_isalnum(pattern[0])) {
52 else if (pattern[0] == 's' && !apr_isalnum(pattern[1])) {
54 delim = pattern[1];
57 else if (pattern[0] == 'm' && !apr_isalnum(pattern[1])) {
58 delim = pattern[1];
69 if (ap_regcomp(&ret->rx, pattern, 0) == 0) {
140 const char *pattern, char **newpattern)
147 if (ap_regexec(&rx->rx, pattern, rx->nmatch, rx->pmatch, rx->flags) != 0) {
151 rx->match = pattern;
153 *newpattern = ap_pregsub(pool, rx->subs, pattern,
162 remainder = pattern + startl + oldl;
172 subs = apr_palloc(pool, strlen(pattern) + 1 + diffsz);
173 memcpy(subs, pattern, startl);