diff options
author | Stefan Eissing <icing@apache.org> | 2015-09-03 11:39:59 +0200 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2015-09-03 11:39:59 +0200 |
commit | d84e8bfef678f612cef263bfdf4666c2983cecb4 (patch) | |
tree | d3832c6d59c55f3751d732a44d3e10278dfb66fe /include | |
parent | missed in r1698023 (diff) | |
download | apache2-d84e8bfef678f612cef263bfdf4666c2983cecb4.tar.xz apache2-d84e8bfef678f612cef263bfdf4666c2983cecb4.zip |
final final change to the new ap_array_str_* functions after review
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1700968 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r-- | include/httpd.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/httpd.h b/include/httpd.h index 24e1e2d9cc..ee5034c167 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -2407,22 +2407,22 @@ AP_DECLARE(char *) ap_get_exec_line(apr_pool_t *p, * searching a start. * @param array The array the check * @param s The string to find - * @param start Start index for search. If start is greater or - equal to array length, -1 will be returned. + * @param start Start index for search. If start is out of bounds (negative or + equal to array length or greater), -1 will be returned. * @return index of string in array or -1 */ -AP_DECLARE(int) ap_array_index(const apr_array_header_t *array, - const char *s, - apr_size_t start); +AP_DECLARE(int) ap_array_str_index(const apr_array_header_t *array, + const char *s, + int start); /** * Check if the string is member of the given array by strcmp. * @param array The array the check * @param s The string to find - * @return !=0 iff string is member of array + * @return !=0 iff string is member of array (via strcmp) */ -AP_DECLARE(int) ap_array_contains(const apr_array_header_t *array, - const char *s); +AP_DECLARE(int) ap_array_str_contains(const apr_array_header_t *array, + const char *s); #ifdef __cplusplus } |