Return-Path: X-Original-To: apmail-apr-dev-archive@www.apache.org Delivered-To: apmail-apr-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 622A918305 for ; Thu, 26 Nov 2015 21:55:44 +0000 (UTC) Received: (qmail 25833 invoked by uid 500); 26 Nov 2015 21:55:44 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 25720 invoked by uid 500); 26 Nov 2015 21:55:44 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 25708 invoked by uid 99); 26 Nov 2015 21:55:44 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Nov 2015 21:55:44 +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 B143CC08AC for ; Thu, 26 Nov 2015 21:55:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.999 X-Spam-Level: ** X-Spam-Status: No, score=2.999 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, URIBL_BLOCKED=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 1LU1zdBYpTf8 for ; Thu, 26 Nov 2015 21:55:38 +0000 (UTC) Received: from mail-io0-f174.google.com (mail-io0-f174.google.com [209.85.223.174]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id CE11222F01 for ; Thu, 26 Nov 2015 21:55:37 +0000 (UTC) Received: by iouu10 with SMTP id u10so99345329iou.0 for ; Thu, 26 Nov 2015 13:55:37 -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 :cc:content-type; bh=gMr64wGcrfsUyBwxnulVul5/zDMtFQybU8xq1+Uan7E=; b=Sq2cLVT5nmtnUo7IKVIsZFqr11aMmIVlhGKUEdrcQiYZlsrQOEElTZp25UAVWCD5Sq 2GeZoTyJr5PC2xLAdzXYAvqD0fICNBTtGFoUDpmrya/oo97yBBCLA8hKIFoSnouwjWLs DqVxs5gmHXSku3QFsJuDslvE+Lt7y966g3+n71u7EsPeDxl4tyztgp+m771NH+Hirnqk Kr7J86WuPgmSOdUOKdcCfT2G1L1/ggttv/HpIM96TgA+HdAmAvyFkL5lqwHB6k+zDYTo cwsc4ERoZju0Px5qiQTTtXeVJjekywBS+ecsg+xtqGhkNsNyM+TGQpU/Cq/m3ge1pW8X tJHw== 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:cc:content-type; bh=gMr64wGcrfsUyBwxnulVul5/zDMtFQybU8xq1+Uan7E=; b=cX/ad2DYH90KeUtbgyvs0H1aev5ji2TTdXVdT7fFdt+Jx5k5xewv9cIm8Blto5sRE6 JjVb1h3zroAX4qbo9sFrt11PNgOn/EDNOk3wyKNag4hQgLKmLjFQmM+pVYAvETsKCoC8 5gAy3/JW8qN2OJGFv6zKIldtLonKP/YeapMvMR/lU5Gm6yXlWOS0S3Bmn6K8gT1jG7lT m2zseg31rb5y/cXSat+AKIcq/UbtV8SO9Tpq0rmgFf7l8xr4LCwcFGh8nVQybdrtqt4i PAbETyhea8gEyqKSNMB79MeIf+YL159+0A3BLhwph/ottmTIx0U2kAL07BVdXc//nHuQ rCxQ== X-Gm-Message-State: ALoCoQm3447jwTXsLjow+TPc52CDamhxtA4QyG//RqqmGNSeHi2ZiycEqZbkaUoH4PtuRHJuLwiU MIME-Version: 1.0 X-Received: by 10.107.34.199 with SMTP id i190mr8204592ioi.150.1448574937210; Thu, 26 Nov 2015 13:55:37 -0800 (PST) Received: by 10.107.62.136 with HTTP; Thu, 26 Nov 2015 13:55:37 -0800 (PST) Received: by 10.107.62.136 with HTTP; Thu, 26 Nov 2015 13:55:37 -0800 (PST) In-Reply-To: <56573B78.6090504@apache.org> References: <9F4E6A21-9544-4F43-834A-F8DCF20693C9@jaguNET.com> <34DA4EC2-039B-40D5-B176-6E0F8517DC5E@jaguNET.com> <56562DAF.2080702@wanadoo.fr> <00ce01d127ce$121901b0$364b0510$@qqmail.nl> <56573B78.6090504@apache.org> Date: Thu, 26 Nov 2015 15:55:37 -0600 Message-ID: Subject: Re: apr_token_* conclusions From: William A Rowe Jr To: =?UTF-8?Q?Branko_=C4=8Cibej?= Cc: APR Developer List Content-Type: multipart/alternative; boundary=001a1140d944903958052578a234 --001a1140d944903958052578a234 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Nov 26, 2015 11:03 AM, "Branko =C4=8Cibej" wrote: > > On 26.11.2015 15:44, William A Rowe Jr wrote: > > Better if I address this Q to svn folks at the APR project :) > > On Nov 26, 2015 08:39, "William A Rowe Jr" wrote: > > > >> Sounds right... Actually a fusion between svn_cstring_* and several > >> existing ap_ and apr_ functions would be useful. > >> > >> SVN folk, any objection to APR appropriating these API's? 20/20 > >> hindsight, is apr_cstring_ or shorter apr_cstr_ the way to go here? You > >> all had to use the thing so I trust your preferences. Either expresse= s > >> locale C in my mind, so they work for me. > > Note that the svn_cstring* functions have *nothing* whatsoever to do > with the "C" locale; they manipulate nul-terminated "C" strings, that's all. > > svn_cstring_casecmp depends on svn_ctype_casecmp; the svn_ctype > functions are expected to only work on the ASCII subset. > > -- Brane Understood. Unlike svn we still support EBCDIC and so the use of the phrase 'ASCII' is unnecessary confusing. The aliases C and POSIX both refer to the locale you describe. Only ASCII digits are recognised, only ASCII punctuation is honored, only ASCII alpha are case-folded. Or the associated characters in the EBCDIC set. All other byte values are opaque. GCC deemed this important enough to add the g_ascii_str* gcc specific extension functions. We are saying the same thing and reading, just using different semantics to describe cstring. --001a1140d944903958052578a234 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Nov 26, 2015 11:03 AM, "Branko =C4=8Cibej" <= brane@apache.org> wrote:
>
> On 26.11.2015 15:44, William A Rowe Jr wrote:
> > Better if I address this Q to svn folks at the APR project :)
> > On Nov 26, 2015 08:39, "William A Rowe Jr" <wrowe@rowe-clan.net> wrote:
> >
> >> Sounds right... Actually a fusion between svn_cstring_* and s= everal
> >> existing ap_ and apr_ functions would be useful.
> >>
> >> SVN folk, any objection to APR appropriating these API's?= =C2=A0 20/20
> >> hindsight, is apr_cstring_ or shorter apr_cstr_ the way to go= here?=C2=A0 You
> >> all had to use the thing so I trust your preferences.=C2=A0 E= ither expresses
> >> locale C in my mind, so they work for me.
>
> Note that the svn_cstring* functions have *nothing* whatsoever to do > with the "C" locale; they manipulate nul-terminated "C&= quot; strings, that's all.
>
> svn_cstring_casecmp depends on svn_ctype_casecmp; the svn_ctype
> functions are expected to only work on the ASCII subset.
>
> -- Brane

Understood.

Unlike svn we still support EBCDIC and so the use of the phr= ase 'ASCII' is unnecessary confusing.

The aliases C and POSIX both refer to the locale you describ= e.=C2=A0 Only ASCII digits are recognised, only ASCII punctuation is honore= d, only ASCII alpha are case-folded.

Or the associated characters in the EBCDIC set.=C2=A0 All ot= her byte values are opaque.

GCC deemed this important enough to add the g_ascii_str* gcc= specific extension functions.

We are saying the same thing and reading, just using differe= nt semantics to describe cstring.

--001a1140d944903958052578a234--