22#define APR_WANT_STRFUNC
56module AP_MODULE_DECLARE_DATA speling_module;
108 "whether or not to fix miscapitalized/misspelled requests"),
111 "whether or not to fix only miscapitalized requests"),
114 "whether or not to fix files with the same base name"),
132 "transposed characters",
135 "mistyped character",
392 ref ?
APLOGNO(03224)
"Fixed spelling: %s to %s from %s"
393 :
APLOGNO(03225)
"Fixed spelling: %s to %s%s",
432 "The document name you requested (<code>";
435 "</code>) could not be found on this server.\n"
436 "However, we found documents with names similar "
437 "to the one you requested.<p>"
438 "Available documents:\n<ul>\n";
476 "</ul>\nFurthermore, the following related "
477 "documents were found:\n<ul>\n";
485 "Please consider informing the owner of the "
486 "referring page <tt>";
489 "</tt> about the broken link.\n";
502 ref ?
APLOGNO(03226)
"Spelling fix: %s: %d candidates from %s"
503 :
APLOGNO(03227)
"Spelling fix: %s: %d candidates%s",
APR general purpose library routines.
APR Standard Headers Support.
#define ap_get_module_config(v, m)
#define AP_DECLARE_MODULE(foo)
#define AP_INIT_FLAG(directive, func, mconfig, where, help)
const char * ap_set_flag_slot(cmd_parms *cmd, void *struct_ptr, int arg)
char * ap_construct_url(apr_pool_t *p, const char *uri, request_rec *r)
void ap_hook_fixups(ap_HOOK_fixups_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
#define HTTP_MULTIPLE_CHOICES
#define HTTP_MOVED_PERMANENTLY
#define STANDARD20_MODULE_STUFF
#define ap_escape_uri(ppool, path)
int ap_rind(const char *str, char c)
#define ap_escape_html(p, s)
int ap_ind(const char *str, char c)
int strcasecmp(const char *a, const char *b)
int strncasecmp(const char *a, const char *b, size_t n)
#define apr_pool_create(newpool, parent)
#define apr_pcalloc(p, size)
static const command_rec speling_cmds[]
static void * mkconfig(apr_pool_t *p)
static int check_speling(request_rec *r)
static sp_reason spdist(const char *s, const char *t)
static void register_hooks(apr_pool_t *p)
static int sort_by_quality(const void *left, const void *rite)
static void * create_mconfig_for_directory(apr_pool_t *p, char *dir)
static const char * sp_reason_str[]
static void * create_mconfig_for_server(apr_pool_t *p, server_rec *s)
A structure that represents the current request.
apr_table_t * subprocess_env
struct ap_conf_vector_t * per_dir_config
apr_table_t * headers_out
A structure to store information for each virtual server.
apr_status_t apr_dir_read(apr_finfo_t *finfo, apr_int32_t wanted, apr_dir_t *thedir)
apr_status_t apr_dir_close(apr_dir_t *thedir)
apr_status_t apr_dir_open(apr_dir_t **new, const char *dirname, apr_pool_t *pool)
typedef int(WSAAPI *apr_winapi_fpt_WSAPoll)(IN OUT LPWSAPOLLFD fdArray