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

Filename Matching Functions


Defines

#define APR_FNM_NOMATCH   1
#define APR_FNM_NOESCAPE   0x01
#define APR_FNM_PATHNAME   0x02
#define APR_FNM_PERIOD   0x04
#define APR_FNM_CASE_BLIND   0x08
#define FNM_NOMATCH   APR_FNM_NOMATCH
#define FNM_NOESCAPE   APR_FNM_NOESCAPE
#define FNM_PATHNAME   APR_FNM_PATHNAME
#define FNM_PERIOD   APR_FNM_PERIOD
#define FNM_CASE_BLIND   APR_FNM_CASE_BLIND

Functions

 APR_DECLARE (apr_status_t) apr_fnmatch(const char *pattern
 APR_DECLARE (int) apr_fnmatch_test(const char *pattern)

Variables

const char * strings
const char int flags

Define Documentation

#define APR_FNM_CASE_BLIND   0x08
 

Compare characters case-insensitively.

Remarks:
This flag is an Apache addition

Definition at line 62 of file apr_fnmatch.h.

Referenced by APR_DECLARE(), and rangematch().

#define APR_FNM_NOESCAPE   0x01
 

Disable backslash escaping.

Definition at line 59 of file apr_fnmatch.h.

Referenced by APR_DECLARE(), and rangematch().

#define APR_FNM_NOMATCH   1
 

Match failed.

Definition at line 57 of file apr_fnmatch.h.

Referenced by APR_DECLARE().

#define APR_FNM_PATHNAME   0x02
 

Slash must be matched by slash.

Definition at line 60 of file apr_fnmatch.h.

Referenced by APR_DECLARE().

#define APR_FNM_PERIOD   0x04
 

Period must be matched by period.

Definition at line 61 of file apr_fnmatch.h.

Referenced by APR_DECLARE().

#define FNM_CASE_BLIND   APR_FNM_CASE_BLIND
 

Deprecated:
See also:
APR_FNM_CASE_BLIND

Definition at line 70 of file apr_fnmatch.h.

Referenced by make_autoindex_entry(), and ssl_check_public_cert().

#define FNM_NOESCAPE   APR_FNM_NOESCAPE
 

Deprecated:
See also:
APR_FNM_NOESCAPE

Definition at line 67 of file apr_fnmatch.h.

Referenced by make_autoindex_entry().

#define FNM_NOMATCH   APR_FNM_NOMATCH
 

Deprecated:
See also:
APR_FNM_NOMATCH

Definition at line 66 of file apr_fnmatch.h.

Referenced by ssl_check_public_cert().

#define FNM_PATHNAME   APR_FNM_PATHNAME
 

Deprecated:
See also:
APR_FNM_PATHNAME

Definition at line 68 of file apr_fnmatch.h.

#define FNM_PERIOD   APR_FNM_PERIOD
 

Deprecated:
See also:
APR_FNM_PERIOD

Definition at line 69 of file apr_fnmatch.h.

Referenced by make_autoindex_entry(), and ssl_check_public_cert().


Function Documentation

APR_DECLARE int   )  const
 

Do a natural order comparison of two strings.

Parameters:
a The first string to compare
b The second string to compare
Returns:
Either <0, 0, or >0. If the first string is less than the second this returns <0, if they are equivalent it returns 0, and if the first string is greater than second string it retuns >0.

Definition at line 950 of file unix/sockaddr.c.

APR_DECLARE apr_status_t   )  const
 

Try to match the string to the given pattern, return APR_SUCCESS if match, else return APR_FNM_NOMATCH.

Parameters:
pattern The pattern to match to
strings The string we are trying to match
flags flags to use in the match. Bitwise OR of:
              APR_FNM_NOESCAPE       Disable backslash escaping
              APR_FNM_PATHNAME       Slash must be matched by slash
              APR_FNM_PERIOD         Period must be matched by period
              APR_FNM_CASE_BLIND     Compare characters case-insensitively.
 


Variable Documentation

const char int flags
 

Definition at line 87 of file apr_fnmatch.h.

const char* strings
 

Definition at line 87 of file apr_fnmatch.h.