diff options
author | Jeff Trawick <trawick@apache.org> | 2014-04-15 12:18:34 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2014-04-15 12:18:34 +0000 |
commit | a7219fda36e13f1399b8d413ebf961dccadcdd67 (patch) | |
tree | 650ce3e02a9c26aaf3e2039886618c3b57542fd7 /include/apr_fnmatch.h | |
parent | 2b8096f53ea1d0524af4b680a5d079e8d1e1d224 (diff) | |
download | apr-a7219fda36e13f1399b8d413ebf961dccadcdd67.tar.gz |
minor API doc improvements
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1587545 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_fnmatch.h')
-rw-r--r-- | include/apr_fnmatch.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/include/apr_fnmatch.h b/include/apr_fnmatch.h index ef6d0b250..e8f6b03cf 100644 --- a/include/apr_fnmatch.h +++ b/include/apr_fnmatch.h @@ -60,9 +60,7 @@ extern "C" { #define APR_FNM_NOESCAPE 0x01 /**< Disable backslash escaping. */ #define APR_FNM_PATHNAME 0x02 /**< Slash must be matched by slash. */ #define APR_FNM_PERIOD 0x04 /**< Period must be matched by period. */ -#define APR_FNM_CASE_BLIND 0x08 /**< Compare characters case-insensitively. - * @remark This flag is an Apache addition - */ +#define APR_FNM_CASE_BLIND 0x08 /**< Compare characters case-insensitively. */ /** * Try to match the string to the given pattern, return APR_SUCCESS if @@ -130,13 +128,19 @@ APR_DECLARE(apr_status_t) apr_fnmatch(const char *pattern, APR_DECLARE(int) apr_fnmatch_test(const char *pattern); /** - * Find all files that match a specified pattern. - * @param pattern The pattern to use for finding files. + * Find all files that match a specified pattern in a directory. + * @param dir_pattern The pattern to use for finding files, appended + * to the search directory. The pattern is anything following the + * final forward or backward slash in the parameter. If no slash + * is found, the current directory is searched. * @param result Array to use when storing the results * @param p The pool to use. - * @return non-zero if pattern has any glob characters in it + * @return APR_SUCCESS if no processing errors occurred, APR error + * code otherwise + * @remark The returned array may be empty even if APR_SUCCESS was + * returned. */ -APR_DECLARE(apr_status_t) apr_match_glob(const char *pattern, +APR_DECLARE(apr_status_t) apr_match_glob(const char *dir_pattern, apr_array_header_t **result, apr_pool_t *p); |