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_status_t | apr_fnmatch (const char *pattern, const char *strings, int flags) |
int | apr_fnmatch_test (const char *pattern) |
int | apr_is_fnmatch (const char *pattern) |
#define APR_FNM_CASE_BLIND 0x08 |
Compare characters case-insensitively.
#define APR_FNM_NOESCAPE 0x01 |
Disable backslash escaping.
#define APR_FNM_NOMATCH 1 |
Match failed.
#define APR_FNM_PATHNAME 0x02 |
Slash must be matched by slash.
#define APR_FNM_PERIOD 0x04 |
Period must be matched by period.
#define FNM_CASE_BLIND APR_FNM_CASE_BLIND |
#define FNM_NOESCAPE APR_FNM_NOESCAPE |
#define FNM_NOMATCH APR_FNM_NOMATCH |
#define FNM_PATHNAME APR_FNM_PATHNAME |
#define FNM_PERIOD APR_FNM_PERIOD |
apr_status_t apr_fnmatch | ( | const char * | pattern, | |
const char * | strings, | |||
int | flags | |||
) |
Try to match the string to the given pattern, return APR_SUCCESS if match, else return APR_FNM_NOMATCH.
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. |
int apr_fnmatch_test | ( | const char * | pattern | ) |
Determine if the given pattern is a regular expression.
pattern | The pattern to search for glob characters. |
int apr_is_fnmatch | ( | const char * | pattern | ) |