[kaffe] java.util.regex patch

Mark Wielaard mark at klomp.org
Thu Jan 8 03:20:04 PST 2004


I am preparing for inclusion of java.util.regex and gnu.regexp in GNU
Classpath. I just added some test cases to Mauve. I need the following
patches to make them work correctly with kaffe. Hope they make sense.

2004-01-08  Mark Wielaard  <mark at klomp.org>

        * java/util/regex/Matcher.java (find): Check whether or not we are
	stuck at the same position after a successful match and bump position
        of possible.
        * java/util/regex/Pattern.java (split(CharSequence, int)): Use
        ArrayList, not Vector. Make sure we match at most limit -1 times, when
        limit > 0. Check whether or not to add emtpty strings.

They are only against the java.util.regex wrappers, I haven't looked at
gnu.regexp proper yet. I have some more Mauve tests that I will check in
later, but gnu.regexp doesn't seem to support octal, hex and unicode
escapes yet so most of them fail.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: regex.patch
Type: text/x-patch
Size: 3676 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20040108/4e6a9a28/attachment-0007.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://kaffe.org/pipermail/kaffe/attachments/20040108/4e6a9a28/attachment-0002.pgp 

More information about the kaffe mailing list