Title: RE: Precision Specifier
James,
 
I guess you are right. I will just have to do the caclulation to get the effect I want. BTW, I am having trouble applying the patch to the java file. It is a small file so could you plesae post the file or the patch instructions. I am using Solaris 7.
 
Joe
-----Original Message-----
From: James Vera [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 7:49 PM
To: 'LOG4J Users Mailing List'
Subject: RE: Precision Specifier



Joe,

>I think the number after the comma should be the number of subparts required.
>
>eg.
>a.b.c.d

>{-2,2} => b.c
>{2,2}  => c.d
>{-0,1} => a

Thanks for the feedback.  Still I would hesitate to go that route as it has less functionality then the one originally proposed.  Strange things like if you wanted from after the first element to before the last element couldn't be expressed in your syntax (though, perhaps that isn't much of a limitation)

>I am not so sure about using -0 as an index. Maybe the index should be 1 originated
>giving {-1,1} =>a.

You don't have to use -0.  Zero being neither positive nor negative has the special semantics of being before the first element for start and after the last element for end.  So to get "a" in your example you'd need only {0,1}  (and magically (though untested :-) the whole string should be gotten with {0,0})

Regards,

James

Reply via email to