From: Ito Kazumitsu <[EMAIL PROTECTED]>
Subject: Re: [cp-patches] RFC: java.util.regex.Matcher#hitEnd()
Date: Mon, 07 Aug 2006 02:13:34 +0900 (JST)
> I have made a patch and a mauve test for this, and put it at
> http://www.jsdi.or.jp/~maczuka/programs/regex-patched.tar.gz,
> b
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
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
> "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
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
> "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
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
> "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
Hi,
I am not sure of what java.util.regex.Matcher#hitEnd() should return,
but this is my proposed patch.
ChangeLog:
2006-07-29 Ito Kazumitsu <[EMAIL PROTECTED]>
Fixes bug #28412
* java/util/regex/Matcher.java(hitEnd): New method.
Index: classpath/java/util/regex/Matcher.java
=