Re: Feature Proposal: Allow letter decrementing
>>>> What's the intended use case for string increment / decrement?
>>>>
>>>>
>>> Personally, I instantly think of mirroring spreadsheet columns - works
>>> 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.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: [email protected]
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Thread (22 messages)