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 1586418870 for ; Wed, 25 Nov 2015 19:31:55 +0000 (UTC) Received: (qmail 87490 invoked by uid 500); 25 Nov 2015 19:31:53 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 87418 invoked by uid 500); 25 Nov 2015 19:31:53 -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 87408 invoked by uid 99); 25 Nov 2015 19:31:53 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2015 19:31:53 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0525E1A29DC for ; Wed, 25 Nov 2015 19:31:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3 X-Spam-Level: *** X-Spam-Status: No, score=3 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=rowe-clan-net.20150623.gappssmtp.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 2wKus7EdgDsh for ; Wed, 25 Nov 2015 19:31:44 +0000 (UTC) Received: from mail-io0-f176.google.com (mail-io0-f176.google.com [209.85.223.176]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 9E0DD428FF for ; Wed, 25 Nov 2015 19:31:44 +0000 (UTC) Received: by iofh3 with SMTP id h3so63780218iof.3 for ; Wed, 25 Nov 2015 11:31:38 -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=qeAi61cpvLCchVLzX18BCcdb3PVX4ZHeosi+76zgXGg=; b=FQTESb3WFy/8B9ft9QieGAIoXDGP3cmboU5fUWikAFrAe9BVZoy1A2CUPutF3q3RyX RGaVmM/s94UgGW7AnE3oozeDvY8d6o8BjdF//Bp5gIrdDy549zG6Oe5eOwzI40ncqBBB PfYWKI1yMoyTqhmlgw1OY76KIOeVQ3ApcCf5TG7nE2N310J6xFe/kqPEFn/IjFkjOk46 JcVKvnDnOC5Vn1saznDHtR7dQchkh/bRVAA3/k8c5fn67TUK2TwJo5XFDV3X4EAhG7d+ rdO1oOtXr9NVal1vuepzOoBaaNvS9seNZkeIeeDyElZuneIVOnfTtOsHOE5nfA+Hdkm1 6LIg== 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=qeAi61cpvLCchVLzX18BCcdb3PVX4ZHeosi+76zgXGg=; b=fISZyIwf2oPhtpVHfk+Q3jcfzP/318UfZutbNbvWkwoKGn6hCqxwANFM0Hy72gd8wb LASaBuzXol+iB7igc4mwIJzVLSQuQf8L9iJXeInwrvZ+ED+6hEMXGe6Q2mwVgxMdmJNG 9SqdUu4WPYiVo/tUd3TiWGUzaju4NQ5XlBgyJKWI6PbD6jPpN4O7xrFXwnDqkHEwFhzH ujSSIWntJpxCJ6WMNuRwU9W0pA30OuKnNpyP6zijsFlGIO699fk1aumr7lP3FSqMUrDL RGBFk9uBq7XzkvwLGi/bFRo1VtXsnzrnEWWAzmeGvbtxwt5ABPzojejpPhFgf7Rt9O9d 7PuA== X-Gm-Message-State: ALoCoQm9IU7XetyFGxmMmzZB1pyQmdCD7ApkfJxGTnP5e/JJRVpo2Dvg6azXfwKlFAjEwRIEL0gt MIME-Version: 1.0 X-Received: by 10.107.156.6 with SMTP id f6mr2670438ioe.163.1448479898154; Wed, 25 Nov 2015 11:31:38 -0800 (PST) Received: by 10.107.62.136 with HTTP; Wed, 25 Nov 2015 11:31:38 -0800 (PST) In-Reply-To: <9F4E6A21-9544-4F43-834A-F8DCF20693C9@jaguNET.com> References: <9F4E6A21-9544-4F43-834A-F8DCF20693C9@jaguNET.com> Date: Wed, 25 Nov 2015 13:31:38 -0600 Message-ID: Subject: Re: apr_token_* conclusions (was: Better casecmpstr[n]?) From: William A Rowe Jr To: httpd Content-Type: multipart/alternative; boundary=001a1140ccc0cb82610525628107 --001a1140ccc0cb82610525628107 Content-Type: text/plain; charset=UTF-8 On Wed, Nov 25, 2015 at 1:12 PM, Jim Jagielski wrote: > > > On Nov 25, 2015, at 12:42 PM, William A Rowe Jr > wrote: > > > > On Wed, Nov 25, 2015 at 10:17 AM, Jim Jagielski wrote: > > What is the current status? Is this on hold? > > > > It is looking for a good name. I'm happy with apr_token_strcasecmp > > to best indicate its use-case and provenance. Does that work for > > everyone? > > Still not super excited by the use of 'token' since it > implies it should only be used for HTTP tokens and not > in other cases where we use it to do ascii string comparisons > (for example, when we check env-var settings or maybe directives)... > yeah, they could also be lumped as 'tokens' I guess... > > ap_casecmpastr[n] for Case-insensitive CoMParison of Ascii STRing > APR has a naming pattern for various functional groups - this won't be the last one that is impacted by POSIX-ing what should already be posix :) Because this is (a) str[n]casecmp I'm pretty strongly against name mangling for the sake of name mangling, our consumers are C programmers, after all. Well, most of them anyways... and they should be familiar enough names for the Lua and PHP folks too. And this isn't ASCII actually, we established that we want EBCDIC build of APR + HTTPD to have the same thing. Not ASCII, but POSIX locale. We will be careful about the description on that count. Still -0.5 on introducing an ap_function, in light of the current mess in httpd.h. I'm only 10% of the way through reviewing @deprecated on that single header. --001a1140ccc0cb82610525628107 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On W= ed, Nov 25, 2015 at 1:12 PM, Jim Jagielski <jim@jagunet.com> w= rote:

> On Nov 25, 2015, at 12:42 PM, William A Rowe Jr <wrowe@rowe-clan.net> wrote:
>
> On Wed, Nov 25, 2015 at 10:17 AM, Jim Jagielski <jim@jagunet.com> wrote:
> What is the current status? Is this on hold?
>
> It is looking for a good name.=C2=A0 I'm happy with apr_token_strc= asecmp
> to best indicate its use-case and provenance.=C2=A0 Does that work for=
> everyone?

Still not super excited by the use of 'token' since it
implies it should only be used for HTTP tokens and not
in other cases where we use it to do ascii string comparisons
(for example, when we check env-var settings or maybe directives)...
yeah, they could also be lumped as 'tokens' I guess...

ap_casecmpastr[n] for Case-insensitive CoMParison of Ascii STRing

APR has a naming pattern for various functional = groups - this won't be the last
one that is impacted by POSIX= -ing what should already be posix :)

Because = this is (a) str[n]casecmp I'm pretty strongly against name mangling
for the sake of name mangling, our consumers are C programmers, afte= r all.
Well, most of them anyways... and they should be familiar = enough names
for the Lua and PHP folks too.

<= /div>
And this isn't ASCII actually, we established that we want EB= CDIC build of
APR + HTTPD to have the same thing.=C2=A0 Not ASCII= , but POSIX locale.=C2=A0 We
will be careful about the descriptio= n on that count.

Still -0.5 on introducing an ap_f= unction, in light of the current mess in httpd.h.
I'm onl= y 10% of the way through reviewing @deprecated on that single header.
=


--001a1140ccc0cb82610525628107--