Re: [cp-patches] RFC: java.util.regex.Matcher#hitEnd()

2006-08-06 Thread Ito Kazumitsu
From: Tom Tromey <[EMAIL PROTECTED]> Subject: Re: [cp-patches] RFC: java.util.regex.Matcher#hitEnd() Date: 31 Jul 2006 12:16:51 -0400 > Eg consider the expression "bbba+". If the buffer contains "bbb", > then hitEnd should return true -- if we read more dat

Re: [cp-patches] RFC: java.util.regex.Matcher#hitEnd()

2006-08-01 Thread Ito Kazumitsu
From: Tom Tromey <[EMAIL PROTECTED]> Date: Tue, 1 Aug 2006 10:51:10 -0600 > Ito> I used find() and it hit end of input. But match() will NOT hit end > Ito> in that case. > > Ok. How about lookingAt? That's what Scanner currently uses. > But, that could also be wrong... it isn't actually working

Re: [cp-patches] RFC: java.util.regex.Matcher#hitEnd()

2006-08-01 Thread Tom Tromey
> "Ito" == Ito Kazumitsu <[EMAIL PROTECTED]> writes: Ito> Sun's hitEnd will return true for the latter case. >> >> Weird. I'm not sure what that implies for Scanner... it seems my >> current code must be wrong however. Ito> I used find() and it hit end of input. But match() will NOT hit end

Re: [cp-patches] RFC: java.util.regex.Matcher#hitEnd()

2006-08-01 Thread Ito Kazumitsu
From: Tom Tromey <[EMAIL PROTECTED]> Date: Tue, 1 Aug 2006 09:05:19 -0600 > > "Ito" == Ito Kazumitsu <[EMAIL PROTECTED]> writes: > > >> Eg consider the expression "bbba+". If the buffer contains "bbb", > >> then hitEnd should return true -- if we read more data we might > >> possibly match t

Re: [cp-patches] RFC: java.util.regex.Matcher#hitEnd()

2006-08-01 Thread Tom Tromey
> "Ito" == Ito Kazumitsu <[EMAIL PROTECTED]> writes: >> Eg consider the expression "bbba+". If the buffer contains "bbb", >> then hitEnd should return true -- if we read more data we might >> possibly match this expression. But if the buffer contained "maude", >> then hitEnd would return fal

Re: [cp-patches] RFC: java.util.regex.Matcher#hitEnd()

2006-07-31 Thread Ito Kazumitsu
From: Tom Tromey <[EMAIL PROTECTED]> Date: 31 Jul 2006 12:16:51 -0400 > It should return true if more input could possibly satisfy the regular > expression. > > Eg consider the expression "bbba+". If the buffer contains "bbb", > then hitEnd should return true -- if we read more data we might > p

Re: [cp-patches] RFC: java.util.regex.Matcher#hitEnd()

2006-07-31 Thread Tom Tromey
> "Ito" == Ito Kazumitsu <[EMAIL PROTECTED]> writes: Ito> I am not sure of what java.util.regex.Matcher#hitEnd() should return, Ito> but this is my proposed patch. It should return true if more input could possibly satisfy the regular expression. This is needed by Scanner. Scanner buffers i