summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2016-06-09 03:04:47 +0200
committerWilliam A. Rowe Jr <wrowe@apache.org>2016-06-09 03:04:47 +0200
commit8b48a3686b23d74afe7bb8c073194907c16e65cb (patch)
treec0b6dc9d71c83470141a9248726fc6d488e64158 /include
parentThe answer to the question appears to be in 2.4.21, drop h2_casecmpstr fork (diff)
downloadapache2-8b48a3686b23d74afe7bb8c073194907c16e65cb.tar.xz
apache2-8b48a3686b23d74afe7bb8c073194907c16e65cb.zip
Major issue with these two specific edits falling into r1747469
is that it becomes impossible to cleanly merge into branches/2.4.x. Reverting this one functional/historical edit, to recommit for merging. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1747477 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/httpd.h35
1 files changed, 13 insertions, 22 deletions
diff --git a/include/httpd.h b/include/httpd.h
index f2c7c12ca7..585a89d5e3 100644
--- a/include/httpd.h
+++ b/include/httpd.h
@@ -2470,32 +2470,23 @@ AP_DECLARE(int) ap_array_str_contains(const apr_array_header_t *array,
const char *s);
/**
- * Perform a case-insensitive comparison of two strings @a atr1 and @a atr2,
- * treating upper and lower case values of the 26 standard C/POSIX alphabetic
- * characters as equivalent. Extended latin characters outside of this set
- * are treated as unique octets, irrespective of the current locale.
- *
- * Returns in integer greater than, equal to, or less than 0,
- * according to whether @a str1 is considered greater than, equal to,
- * or less than @a str2.
- *
- * @note Same code as apr_cstr_casecmp, which arrives in APR 1.6
+ * 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 0 if s1 is lexicographically equal to s2 ignoring case;
+ * non-0 otherwise.
*/
-AP_DECLARE(int) ap_cstr_casecmp(const char *s1, const char *s2);
+AP_DECLARE(int) ap_casecmpstr(const char *s1, const char *s2);
/**
- * Perform a case-insensitive comparison of two strings @a atr1 and @a atr2,
- * treating upper and lower case values of the 26 standard C/POSIX alphabetic
- * characters as equivalent. Extended latin characters outside of this set
- * are treated as unique octets, irrespective of the current locale.
- *
- * Returns in integer greater than, equal to, or less than 0,
- * according to whether @a str1 is considered greater than, equal to,
- * or less than @a str2.
- *
- * @note Same code as apr_cstr_casecmp, which arrives in APR 1.6
+ * Known-fast version of strncasecmp(): ASCII case-folding, POSIX compliant
+ * @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 0 if s1 is lexicographically equal to s2 ignoring case;
+ * non-0 otherwise.
*/
-AP_DECLARE(int) ap_cstr_casecmpn(const char *s1, const char *s2, apr_size_t n);
+AP_DECLARE(int) ap_casecmpstrn(const char *s1, const char *s2, apr_size_t n);
#ifdef __cplusplus
}