Title: RE: Precision Specifier

I'd like to offer up a patch to PatternParser.java that changes the semantics of the precision modifier.

In particular, the current meaning is unchanged with new capabilities added.  Semantics are now:

A positive integer indicates a substring starting with that offset from the right to the end.
A negative integer indicates a substring starting with the absolute value of that integer offset from the left to the end.

A pair of integer separated by a comma indicates the substring starting at the offset indicated by the first and ending before the offset indicated by the second.

Examples,

For string a.b.c.d

{2}             => c.d
{-1}            => b.c.d
{3,2}           => b
{-3, -4}        => c

If there's a change you'd like in order for it to be accepted please let me know.

Regards,

James

 

PatternParser.patch

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to