From: Ito Kazumitsu <[EMAIL PROTECTED]>
Date: Tue, 24 Jan 2006 23:37:52 +0900 (JST)

> If we can simplufy the work of getMatchImpl(), we will be
> getting the same results as other implementations as well as
> improved performance.
> 
> In that case, when matches() call getMatchImpl(), an implicit
> RETokenEnd should be added. Otherwise, "aaa" cannot match /a+?/.

I am rewriting the code using this idea.  Unfortunately,
the following tests fail.

/(([a-c])b*?\2)*/
    ababbbcbc
 0: ababb
 1: bb
 2: b

/^(b+?|a){1,2}?c/
    bbc
 0: bbc
 1: b

But I think it is better to go this way than to intoduce some
dirty ad hoc fix proposed by this RFC.

_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://developer.classpath.org/mailman/listinfo/classpath-patches

Reply via email to