Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

String matching routines


Data Structures

struct  apr_strmatch_pattern

Defines

#define apr_strmatch(pattern, s, slen)   (*((pattern)->compare))((pattern), (s), (slen))

Typedefs

typedef apr_strmatch_pattern apr_strmatch_pattern

Functions

 APU_DECLARE (const apr_strmatch_pattern *) apr_strmatch_precompile(apr_pool_t *p

Variables

const char * s
const char int case_sensitive

Define Documentation

#define apr_strmatch pattern,
s,
slen   )     (*((pattern)->compare))((pattern), (s), (slen))
 

Definition at line 64 of file apr_strmatch.h.

Referenced by AP_DECLARE(), main(), and match_headers().


Typedef Documentation

typedef struct apr_strmatch_pattern apr_strmatch_pattern
 

See also:
apr_strmatch_pattern

Definition at line 38 of file apr_strmatch.h.


Function Documentation

APU_DECLARE const apr_strmatch_pattern  ) 
 

Precompile a pattern for matching using the Boyer-Moore-Horspool algorithm

Parameters:
p The pool from which to allocate the pattern
s The pattern string
case_sensitive Whether the matching should be case-sensitive
Returns:
a pointer to the compiled pattern, or NULL if compilation fails


Variable Documentation

const char int case_sensitive
 

Definition at line 74 of file apr_strmatch.h.

const char* s
 

Definition at line 74 of file apr_strmatch.h.