Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9E73E18B6A for ; Mon, 23 Nov 2015 17:02:00 +0000 (UTC) Received: (qmail 16955 invoked by uid 500); 23 Nov 2015 17:02:00 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 16890 invoked by uid 500); 23 Nov 2015 17:02:00 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 16880 invoked by uid 99); 23 Nov 2015 17:02:00 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2015 17:02:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 98D3EC06CC for ; Mon, 23 Nov 2015 17:01:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.998 X-Spam-Level: ** X-Spam-Status: No, score=2.998 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=rowe-clan-net.20150623.gappssmtp.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id mxWUK5pVwqH2 for ; Mon, 23 Nov 2015 17:01:58 +0000 (UTC) Received: from mail-io0-f171.google.com (mail-io0-f171.google.com [209.85.223.171]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 59D2B20592 for ; Mon, 23 Nov 2015 17:01:58 +0000 (UTC) Received: by iofh3 with SMTP id h3so193928058iof.3 for ; Mon, 23 Nov 2015 09:01:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rowe-clan-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=vJvSsLYiIBy8bOoIHY+PZ3h9BVxq/2tIVtPodmiqItE=; b=Gu8Few4RlKLw85kmhGec9U0K3/MREZdPC/yCLWHlPJRdH/FKxUA2+guVRssDU5bhRL EJISy5lVVWGbVnrQe3hzsaf+NuVE9yqBulwLkhj30nnl8HqY9bvAdbG+xjpXMH6zwGuP +eOQNmTBI0UkuWLjcmxT/8ko7OwEYvxBjnHQeqoS2Q4nQwa8y/XK+oP+JkkTE2sfXQ6y TDNZ6Y/BAmK+6wyjGvC3KnJTGtdm1QUdOXe5WbQTV4rtfV3g947zMCO1/6Udxg2qSajj zomfFy/nz4VXa9MbfRXY6emFGjMi5Jrk/S6LxHju5ho96JFe/IJ2bIR4QCv3y1xXvtnL Eumw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=vJvSsLYiIBy8bOoIHY+PZ3h9BVxq/2tIVtPodmiqItE=; b=Ni+2JePSvfkb3/YqTkYMjJcj8692NURiXr5vdQT/nLdbW8cLY4TLsIJIwGGacUYySN PYjdBH+IVFVVqOs+/oE/Oct8y2JuDugRo0v2urbwR5B6jLZ8zzeNHv2542ZY15nlUU8P IY9+pkmWCSTGRNfyVoGDIUSe6tCzqJTzVfOOku7vuKeZtJcV+7/G3W0ohFCpRI397YOZ WQVnlvDttTZ+3zco0EFOL/5aQXk6H3FrI0Rp37OMfLiGoozMQuND1xvYDXRIQL9K1DbT UgZQBPzhnU2KpM2gB1lzyZTwYjcYpQE2Q4qGCdpG4ibfC+eZlSeLx0m6ZaQea+n2SZIG pHjg== X-Gm-Message-State: ALoCoQnNn+aGIGMBP1Hfk14kKRxH9/lOQsxGZOUpyxfk1uePbnZuoWsDJc3sO0xKOt7l4mR29sOv MIME-Version: 1.0 X-Received: by 10.107.34.199 with SMTP id i190mr27095737ioi.150.1448298117651; Mon, 23 Nov 2015 09:01:57 -0800 (PST) Received: by 10.107.62.136 with HTTP; Mon, 23 Nov 2015 09:01:57 -0800 (PST) In-Reply-To: <20151123155826.39A703A043E@svn01-us-west.apache.org> References: <20151123155826.39A703A043E@svn01-us-west.apache.org> Date: Mon, 23 Nov 2015 11:01:57 -0600 Message-ID: Subject: Re: svn commit: r1715859 - /httpd/httpd/trunk/include/httpd.h From: William A Rowe Jr To: httpd Content-Type: multipart/alternative; boundary=001a1140d944d522c10525382edd --001a1140d944d522c10525382edd Content-Type: text/plain; charset=UTF-8 On Mon, Nov 23, 2015 at 9:58 AM, wrote: > Author: jim > Date: Mon Nov 23 15:58:25 2015 > New Revision: 1715859 > > URL: http://svn.apache.org/viewvc?rev=1715859&view=rev > Log: > we just worry about "equality" with this implementation... > So it's not a "real" strcasecmp replacement. > > Modified: > httpd/httpd/trunk/include/httpd.h > > Modified: httpd/httpd/trunk/include/httpd.h > URL: > http://svn.apache.org/viewvc/httpd/httpd/trunk/include/httpd.h?rev=1715859&r1=1715858&r2=1715859&view=diff > > ============================================================================== > --- httpd/httpd/trunk/include/httpd.h (original) > +++ httpd/httpd/trunk/include/httpd.h Mon Nov 23 15:58:25 2015 > @@ -2442,9 +2442,8 @@ AP_DECLARE(int) ap_array_str_contains(co > * 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 > * @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); > Howso? The implementation does provide ASCII numeric-alpha ordering. --001a1140d944d522c10525382edd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On M= on, Nov 23, 2015 at 9:58 AM, <jim@apache.org> wrote:
Author: jim
Date: Mon Nov 23 15:58:25 2015
New Revision: 1715859

URL: http://svn.apache.org/viewvc?rev=3D171= 5859&view=3Drev
Log:
we just worry about "equality" with this implementation...
So it's not a "real" strcasecmp replacement.

Modified:
=C2=A0 =C2=A0 httpd/httpd/trunk/include/httpd.h

Modified: httpd/httpd/trunk/include/httpd.h
URL: http://svn.apache.org/viewvc/httpd/httpd/tru= nk/include/httpd.h?rev=3D1715859&r1=3D1715858&r2=3D1715859&view= =3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D
--- httpd/httpd/trunk/include/httpd.h (original)
+++ httpd/httpd/trunk/include/httpd.h Mon Nov 23 15:58:25 2015
@@ -2442,9 +2442,8 @@ AP_DECLARE(int) ap_array_str_contains(co
=C2=A0 * Known-fast version of strcasecmp(): ASCII case-folding, POSIX comp= liant
=C2=A0 * @param s1 The 1st string to compare
=C2=A0 * @param s2 The 2nd string to compare
- * @return integer greater than, equal to, or less than 0, depending on - *=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if s1 is lexicographically greater tha= n, equal to, or less
- *=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0than s2 ignoring case.
+ * @return 0 if s1 is lexicographically equal to s2 ignoring case;
+ *=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0non-0 otherwise.
=C2=A0 */
=C2=A0AP_DECLARE(int) ap_casecmpstr(const char *s1, const char *s2);

@@ -2453,9 +2452,8 @@ AP_DECLARE(int) ap_casecmpstr(const char
=C2=A0 * @param s1 The 1st string to compare
=C2=A0 * @param s2 The 2nd string to compare
=C2=A0 * @param n=C2=A0 Maximum number of characters in the strings to comp= are
- * @return integer greater than, equal to, or less than 0, depending on - *=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if s1 is lexicographically greater tha= n, equal to, or less
- *=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0than s2 ignoring case.
+ * @return 0 if s1 is lexicographically equal to s2 ignoring case;
+ *=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0non-0 otherwise.
=C2=A0 */
=C2=A0AP_DECLARE(int) ap_casecmpstrn(const char *s1, const char *s2, apr_si= ze_t n);

Howso?=C2=A0 The implementatio= n does provide ASCII numeric-alpha ordering.
--001a1140d944d522c10525382edd--