Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68205 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25888 invoked from network); 19 Jul 2013 16:15:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jul 2013 16:15:01 -0000 Authentication-Results: pb1.pair.com header.from=lang@b1-systems.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lang@b1-systems.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain b1-systems.de designates 84.200.69.220 as permitted sender) X-PHP-List-Original-Sender: lang@b1-systems.de X-Host-Fingerprint: 84.200.69.220 mx1.b1-systems.de Received: from [84.200.69.220] ([84.200.69.220:50079] helo=mx1.b1-systems.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/C8-13120-30669E15 for ; Fri, 19 Jul 2013 12:14:59 -0400 Received: from [192.168.111.20] (cable-95-168-140-151.cust.telecolumbus.net [95.168.140.151]) by mx1.b1-systems.de (Postfix) with ESMTPSA id 4547D4075 for ; Fri, 19 Jul 2013 18:09:57 +0200 (CEST) Message-ID: <51E96600.3070109@b1-systems.de> Date: Fri, 19 Jul 2013 18:14:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: internals@lists.php.net References: <-6008161650538629327@unknownmsgid> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2VUOGDCHVAAJCFOQTDURR" Subject: Re: [PHP-DEV] Feature Proposal: Allow letter decrementing From: lang@b1-systems.de (Ralf Lang) ------enig2VUOGDCHVAAJCFOQTDURR Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable >>>> What's the intended use case for string increment / decrement? >>>> >>>> >>> Personally, I instantly think of mirroring spreadsheet columns - work= s >>> quite well in that context. >>> >> >> ++/-- 'XYZ00001234' would have use cases. I once had an app which needed to generate long continuous ranges of alpha codes. But even then I did not implement -- in PHP userland. I think if there is a need for --, each application would need its own "correct" behaviour. AAA-- may be AA or ZZ or ZZZ or ZZ0 or ZZ9 or even 0ZZ depending on use case. If there is a reason to do this in C rather than PHP userland code, it's probably best fit in an extension. --=20 Ralf Lang Linux Consultant / Developer Tel.: +49-170-6381563 Mail: lang@b1-systems.de B1 Systems GmbH Osterfeldstra=C3=9Fe 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 ------enig2VUOGDCHVAAJCFOQTDURR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlHpZgAACgkQCs1dsHJ/X7Ac9ACdGEG2XUzlD0pw/ymxbsW+z/f/ y+kAoOHu0Q2J2stqewAn1xYhMvCsM93T =vHYo -----END PGP SIGNATURE----- ------enig2VUOGDCHVAAJCFOQTDURR--