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 61CE318121 for ; Tue, 24 Nov 2015 16:53:41 +0000 (UTC) Received: (qmail 38890 invoked by uid 500); 24 Nov 2015 16:53:41 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 38815 invoked by uid 500); 24 Nov 2015 16:53:40 -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 38805 invoked by uid 99); 24 Nov 2015 16:53:40 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2015 16:53:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 714FBC5936 for ; Tue, 24 Nov 2015 16:53:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=rowe-clan-net.20150623.gappssmtp.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 5gBSm8TGSi0o for ; Tue, 24 Nov 2015 16:53:30 +0000 (UTC) Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 0C01C20C61 for ; Tue, 24 Nov 2015 16:53:30 +0000 (UTC) Received: by ioir85 with SMTP id r85so26391649ioi.1 for ; Tue, 24 Nov 2015 08:53:29 -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=fgIeLxi4opam1LD16uQEuRiCjpfAQXj9Z0Q3eopUdP0=; b=MdKqtkATVU1mjYUJ9xeS/iWqZT4Iej9mEEnI2unzS8oZz30H70zhN/fi0Z6dJtLN0h zySS2gfXw+bnLt1qhLP/xkJs04IhwCdYsV+a20M2kRZPijlrBZVa2K2UABMDzEV+bflS HUUB7SuwQZAn5cwg7K+2qQIcH59kFPTjqaswL07Y2jD6abK2Qdb4HguiFext1wCaof10 SnpADM25e5TWl6vDAeCjJq/zkgvv0eXBqiIMSPizvD3KrLTzfbvrfM5j0YwXlE1wz2YO YPQzg0a/8QoBm4wE5/jI4yO81N7RMJU3VYjN0g95hRxk3XR2i/AZQ8TvOoJg2EWK4ioc bNoA== 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=fgIeLxi4opam1LD16uQEuRiCjpfAQXj9Z0Q3eopUdP0=; b=D9nCogKui26MRoSNHpKXs3zigrvNtVdSvFoYsJSYRL78E+bGmPqLXPpVcYnxMzF3tE XiGbMjt+Co9237GKUuXmvlSvihUN3ttiduUeho9UjZu6dPmKEIBOqCq6EoS+KbeueJUm KhpXIrVJYNW6SXxaSdPNWsiwUXm96nX/LUicxcn+1CBPodFEdKPIsnEnlmEp9PxSh5uE m5x8RwBQqs2WznPt4wXx+Y7pNoY7KDXvA9OgiGaOCCsjHHi7N313yyFCP9R6yjvLXFeD 3Fc/WHlpvOOHb84WgfN1yfHpTrhXDhx6ZHXsT2qWPwpYkPDN1m1dxwGm3994/Ytp86JT wg9g== X-Gm-Message-State: ALoCoQks3KFL3v7pQXgKGl73K+TBhcwnJi30W6Jv5WQbEJEilZqvRuHh/iO2uMhSWcPMTuSxzQLv MIME-Version: 1.0 X-Received: by 10.107.10.66 with SMTP id u63mr29059673ioi.86.1448384008931; Tue, 24 Nov 2015 08:53:28 -0800 (PST) Received: by 10.107.62.136 with HTTP; Tue, 24 Nov 2015 08:53:28 -0800 (PST) In-Reply-To: <56548B3E.7080004@aldan.algebra.com> References: <301856DC-1727-4158-96B0-8233D2E01CA9@jaguNET.com> <5653732E.9030401@wanadoo.fr> <6C408DFD-A50D-4DDF-8090-6488CA9C06C4@jaguNET.com> <56548B3E.7080004@aldan.algebra.com> Date: Tue, 24 Nov 2015 10:53:28 -0600 Message-ID: Subject: Re: strncasecmp From: William A Rowe Jr To: httpd Content-Type: multipart/alternative; boundary=001a113f93be5a0c7105254c2ef6 --001a113f93be5a0c7105254c2ef6 Content-Type: text/plain; charset=UTF-8 On Tue, Nov 24, 2015 at 10:07 AM, Mikhail T. wrote: > On 24.11.2015 10:08, William A Rowe Jr wrote: > > As long as this function is promoted for fast ASCII-specific token > recognition and has no other unexpected equalities, it serves a useful > purpose. > > Because of this, I'd suggest renaming it to something, that emphasizes it > being ASCII-only. > Strictly speaking, you are referring to US-ASCII, while the actual function including the EBCDIC build follows LC_CTYPE/LC_COLLATE C or POSIX (equivalent names for the same thing) and is honoring LC_COLLATE of the US-ASCII ordering. apr_strcasecmp_lcposix or apr_strcasecmp_lcc might be a usable name. Other suggestions? I was leaning toward apr_strcasecmp_token since that is a pretty well recognized RFC term and usually refers to the ASCII set. For HTTPbis, token is defined at http://tools.ietf.org/html/rfc7230#section-3.2.6 --001a113f93be5a0c7105254c2ef6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= ue, Nov 24, 2015 at 10:07 AM, Mikhail T. <mi+thun@aldan.algebra.co= m> wrote:
=20 =20 =20
On 24.11.2015 10:08, William A Rowe Jr wrote:
As long as this function is promoted for fast ASCII-specific token
recognition and has no other unexpected equalities, it serves a useful
purpose.
Because of this, I'd suggest renaming it to something, that emphasizes it being ASCII-only.

S= trictly speaking, you are referring to US-ASCII, while the actual function = including
the EBCDIC build follows LC_CTYPE/LC_COLLATE C or POSIX= (equivalent names
for the same thing) and is honoring LC_COLLATE= of the US-ASCII ordering.

apr_strcasecmp_lcposix = or=C2=A0apr_strcasecmp_lcc might be a usable name.=C2=A0 Other
su= ggestions?=C2=A0 I was leaning toward apr_strcasecmp_token since that is a = pretty
well recognized RFC term and usually refers to the ASCII s= et.=C2=A0 For HTTPbis, token






--001a113f93be5a0c7105254c2ef6--