Lines Matching refs:pattern
41 const char *p_start = this_pattern->pattern; in match_boyer_moore_horspool()
65 const char *p_start = this_pattern->pattern; in match_boyer_moore_horspool_nocase()
86 apr_strmatch_pattern *pattern; in apr_strmatch_precompile() local
90 pattern = apr_palloc(p, sizeof(*pattern)); in apr_strmatch_precompile()
91 pattern->pattern = s; in apr_strmatch_precompile()
92 pattern->length = strlen(s); in apr_strmatch_precompile()
93 if (pattern->length == 0) { in apr_strmatch_precompile()
94 pattern->compare = match_no_op; in apr_strmatch_precompile()
95 pattern->context = NULL; in apr_strmatch_precompile()
96 return pattern; in apr_strmatch_precompile()
101 shift[i] = pattern->length; in apr_strmatch_precompile()
104 pattern->compare = match_boyer_moore_horspool; in apr_strmatch_precompile()
105 for (i = 0; i < pattern->length - 1; i++) { in apr_strmatch_precompile()
106 shift[(unsigned char)s[i]] = pattern->length - i - 1; in apr_strmatch_precompile()
110 pattern->compare = match_boyer_moore_horspool_nocase; in apr_strmatch_precompile()
111 for (i = 0; i < pattern->length - 1; i++) { in apr_strmatch_precompile()
112 shift[(unsigned char)apr_tolower(s[i])] = pattern->length - i - 1; in apr_strmatch_precompile()
115 pattern->context = shift; in apr_strmatch_precompile()
117 return pattern; in apr_strmatch_precompile()