Searched refs:pattern (Results 1 - 19 of 19) sorted by relevance

/httpd/modules/lua/
H A Dlua_config.h28 const char *pattern,
H A Dlua_config.c57 const char *pattern,
68 if ((rv = ap_regcomp(uri_pattern, pattern, 0)) != APR_SUCCESS) {
98 lua_getfield(L, 2, "pattern");
100 const char *pattern = lua_tostring(L, -1); local
103 if (ap_regcomp(uri_pattern, pattern, 0) != OK) {
105 pattern);
54 ap_lua_map_handler(ap_lua_dir_cfg *cfg, const char *file, const char *function, const char *pattern, const char *scope) argument
H A Dlua_vmprep.c278 const char *pattern; local
289 pattern = apr_pstrcat(pool, parent_dir, sub_pat, NULL);
291 luaL_gsub(L, current, rep_pat, pattern);
H A Dlua_request.c1122 * lua_ap_regex; r:regex(string, pattern [, flags])
1131 const char *pattern, local
1142 pattern = lua_tostring(L, 3);
1145 rv = ap_regcomp(&regex, pattern, flags);
1651 * @param expected The pattern to match against
H A Dmod_lua.c1136 static const char *register_mapped_file_function_hook(const char *pattern, argument
1145 if (ap_regcomp(regex, pattern,0)) {
1146 return "Invalid regex pattern!";
/httpd/server/
H A Dutil_regex.c32 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[
31 ap_rxplus_compile(apr_pool_t *pool, const char *pattern) argument
139 ap_rxplus_exec(apr_pool_t *pool, ap_rxplus_t *rx, const char *pattern, char **newpattern) argument
[all...]
H A Dapreq_parser_multipart.c48 const apr_strmatch_pattern *pattern; member in struct:mfd_ctx
114 const apr_strmatch_pattern *pattern,
181 if (pattern != NULL && len >= blen) {
182 const char *match = apr_strmatch(pattern, buf, len);
245 ctx->pattern = apr_strmatch_precompile(pool, ctx->bdry, 1);
533 s = split_on_bdry(ctx->bb, ctx->in, ctx->pattern, ctx->bdry);
588 s = split_on_bdry(ctx->bb, ctx->in, ctx->pattern, ctx->bdry);
112 split_on_bdry(apr_bucket_brigade *out, apr_bucket_brigade *in, const apr_strmatch_pattern *pattern, const char *bdry) argument
H A Dutil_pcre.c134 * pattern the pattern to compile
140 AP_DECLARE(int) ap_regcomp(ap_regex_t * preg, const char *pattern, int cflags) argument
155 pcre_compile2(pattern, options, &errcode, &errorptr, &erroffset, NULL);
H A Dutil_expr_eval.c1139 const apr_strmatch_pattern *pattern; local
1146 pattern = apr_strmatch_precompile(parms->pool, original, 0);
1147 *parms->data = pattern;
1160 const apr_strmatch_pattern *pattern = data; local
1177 while ((repl = apr_strmatch(pattern, buff, bytes))) {
H A Dutil.c278 AP_DECLARE(ap_regex_t *) ap_pregcomp(apr_pool_t *p, const char *pattern, argument
282 int err = ap_regcomp(preg, pattern, cflags);
/httpd/include/
H A Dap_regex.h198 * Compile a pattern into a regexp.
209 * @param pattern Pattern to compile
212 AP_DECLARE(ap_rxplus_t*) ap_rxplus_compile(apr_pool_t *pool, const char *pattern);
217 * @param pattern The string to apply it to
222 * (match found), but may be greater if a transforming pattern
226 const char *pattern, char **newpattern);
240 * NOTE: this relies on the match pattern from the last call to
245 * @param match Returns the match pattern
251 * NOTE: this relies on the match pattern from the last call to
H A Dhttpd.h722 * make the (fairly) portable assumption that the bit pattern of a NULL
1872 * @param expected The pattern to match against
1882 * @param expected The pattern to match against
1930 * @param pattern the regular expression to compile
1939 AP_DECLARE(ap_regex_t *) ap_pregcomp(apr_pool_t *p, const char *pattern,
/httpd/modules/metadata/
H A Dmod_setenvif.c111 const apr_strmatch_pattern *pattern; /* non-regex pattern to match */ member in struct:__anon267
339 new->pattern = apr_strmatch_precompile(cmd->pool,
341 if (new->pattern == NULL) {
343 " pattern could not be compiled.", NULL);
354 new->pattern = NULL;
446 new->pattern = NULL;
589 if ((b->pattern && apr_strmatch(b->pattern, val, val_len)) ||
601 if (!b->pattern) {
[all...]
/httpd/modules/ssl/
H A Dssl_ct_util.h39 const char *pattern,
H A Dssl_ct_util.c131 const char *pattern,
157 if (APR_SUCCESS == apr_fnmatch(pattern, finfo.name, APR_FNM_CASE_BLIND)) {
128 ctutil_read_dir(apr_pool_t *p, server_rec *s, const char *dirname, const char *pattern, apr_array_header_t **outarr) argument
/httpd/modules/filters/
H A Dmod_substitute.c48 const apr_strmatch_pattern *pattern; member in struct:subst_pattern_t
130 * Simple optimization. If we only have one pattern, then
151 if (script->pattern) {
159 while ((repl = apr_strmatch(script->pattern, buff, bytes)))
162 /* get offset into buff for pattern */
572 return "Bad Substitute format, must be an s/// pattern";
598 return "Bad Substitute format, must be a complete s/// pattern";
627 nscript->pattern = NULL;
634 nscript->pattern = apr_strmatch_precompile(cmd->pool, from,
H A Dmod_proxy_html.c703 /* XXX Should we search for another content= pattern? */
803 continue; /* don't use empty from-pattern */
1129 "Usage: ProxyHTMLURLMap from-pattern to-pattern [flags] [cond]";
/httpd/modules/mappers/
H A Dmod_rewrite.c274 /* special pattern types for RewriteCond */
299 char *pattern; /* the RegExp pattern string */ member in struct:__anon237
303 pattern_type ptype; /* pattern type */
304 int pskip; /* back-index to display pattern */
315 char *pattern; /* the RegExp pattern string */ member in struct:__anon238
316 ap_regex_t *regexp; /* the RegExp pattern compilation */
3328 /* arg2: the pattern */
3329 newcond->pattern
[all...]
/httpd/modules/generators/
H A Dmod_autoindex.c114 char *pattern; member in struct:ai_desc_t
276 * Add description text for a filename pattern. If the pattern has
279 * pattern contains a '/' anywhere, force wildcard matching mode,
311 desc_entry->pattern = apr_pstrcat(dcfg->desc_list->pool,
315 desc_entry->pattern = apr_pstrdup(dcfg->desc_list->pool, to);
814 * Look through the list of pattern/description pairs and return the first one
849 * Only use the full-path filename if the pattern contains '/'s.
857 found = (apr_fnmatch(tuple->pattern, filename, MATCH_FLAGS) == 0);
860 found = (ap_strstr_c(filename, tuple->pattern) !
1299 make_autoindex_entry(const apr_finfo_t *dirent, int autoindex_opts, autoindex_config_rec *d, request_rec *r, char keyid, char direction, const char *pattern) argument
[all...]

Completed in 146 milliseconds