Lines Matching defs:to
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
4 * The ASF licenses this file to You under the Apache License, Version 2.0
10 * Unless required by applicable law or agreed to in writing, software
23 * Adapted to Apache by rst.
197 static void push_item(apr_array_header_t *arr, char *type, const char *to,
202 if (!to) {
203 to = "";
213 if ((type == BY_PATH) && (!ap_is_matchexp(to))) {
214 p->apply_to = apr_pstrcat(arr->pool, "*", to, NULL);
216 else if (to) {
217 p->apply_to = apr_pstrdup(arr->pool, to);
225 const char *to)
228 if (!strcmp(to, "**DIRECTORY**")) {
229 to = "^^DIRECTORY^^";
233 char *tmp = apr_pstrdup(cmd->pool, to);
235 to = tmp;
238 push_item(((autoindex_config_rec *) d)->alt_list, cmd->info, to,
244 const char *to)
257 add_alt(cmd, d, &alt[1], to);
260 if (!strcmp(to, "**DIRECTORY**")) {
261 to = "^^DIRECTORY^^";
265 char *tmp = apr_pstrdup(cmd->pool, to);
267 to = tmp;
270 push_item(((autoindex_config_rec *) d)->icon_list, cmd->info, to,
277 * wildcards already (or we need to add them), add leading and
278 * trailing wildcards to it to ensure substring processing. If the
280 * add a slash to the prefix so that "bar/bletch" won't be matched
282 * the matching routine simplifies to just the actual filename
284 * to be made for files in subordinate ones using relative paths.
288 * Absent a strcasestr() function, we have to force wildcards on
298 const char *to)
305 desc_entry->full_path = (ap_strchr_c(to, '/') == NULL) ? 0 : 1;
308 || apr_fnmatch_test(to));
312 prefix, to, "*", NULL);
315 desc_entry->pattern = apr_pstrdup(dcfg->desc_list->pool, to);
606 DIR_CMD_PERMS, "URL to style sheet"),
609 DIR_CMD_PERMS, "String to insert in HTML HEAD section"),
707 * Inherit the NameWidth settings if there aren't any specific to
744 /* Structure used to hold entries when we're actually building an index */
903 * reliably - so we have to granularise at the OS level.
1011 * If there's a header file, send a subrequest to look for it. If it's
1031 * text/anything-else. The former is allowed to be processed for
1044 /* This is a hack, but I can't find any better way to do this.
1047 * sub-request needs to pass its data through the OLD_WRITE
1051 * run the request, you need to make sure that the sub-request
1053 * code. The long-term solution is to remove the ap_r*
1138 * If there's a readme file, send a subrequest to look for it. If it's
1149 * text/anything-else. The former is allowed to be processed for
1257 * (or simply '..')be used to describe 'up' from '/some/'
1261 /* The output has always been to the parent. Don't make ourself
1289 /* Special alt text for parent dir to distinguish it from other directories
1290 this is essential when trying to style this dir entry via AddAltClass */
1318 * reliably - so we have to granularise at the OS level.
1404 * We don't need to take any special action for the file size key.
1422 * If there's no DescriptionWidth in effect, default to the old
1471 * current request, the link changes its meaning to reverse the order when
1896 * Compare two file entries according to the sort criteria. The return
1925 * so assign them appropriately to take care of the ordering.
1969 * so always fall back on strcmp() flavors to put entries
1986 * to strcmp on conflicts so that fn1.01.zzz and fn1.1.zzz
2064 * default to ascending by filename.
2072 * Figure out what sort of indexing (if any) we're supposed to use.
2220 /* We want to explode symlinks here. */
2332 merge_autoindex_configs, /* dir merger --- default is to override */