From: Jim Jagielski Date: Mon, 23 Nov 2015 15:58:25 +0000 (+0000) Subject: we just worry about "equality" with this implementation... X-Git-Tag: 2.5.0-alpha~2601 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15d829531ede89167028a829daabe0b7021b65da;p=thirdparty%2Fapache%2Fhttpd.git we just worry about "equality" with this implementation... So it's not a "real" strcasecmp replacement. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715859 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/httpd.h b/include/httpd.h index 855733df50e..1ac9a23f2e9 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -2442,9 +2442,8 @@ AP_DECLARE(int) ap_array_str_contains(const apr_array_header_t *array, * Known-fast version of strcasecmp(): ASCII case-folding, POSIX compliant * @param s1 The 1st string to compare * @param s2 The 2nd string to compare - * @return integer greater than, equal to, or less than 0, depending on - * if s1 is lexicographically greater than, equal to, or less - * than s2 ignoring case. + * @return 0 if s1 is lexicographically equal to s2 ignoring case; + * non-0 otherwise. */ AP_DECLARE(int) ap_casecmpstr(const char *s1, const char *s2); @@ -2453,9 +2452,8 @@ AP_DECLARE(int) ap_casecmpstr(const char *s1, const char *s2); * @param s1 The 1st string to compare * @param s2 The 2nd string to compare * @param n Maximum number of characters in the strings to compare - * @return integer greater than, equal to, or less than 0, depending on - * if s1 is lexicographically greater than, equal to, or less - * than s2 ignoring case. + * @return 0 if s1 is lexicographically equal to s2 ignoring case; + * non-0 otherwise. */ AP_DECLARE(int) ap_casecmpstrn(const char *s1, const char *s2, apr_size_t n);