classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

String.[last]indexOf() patch


From: Mark Wielaard
Subject: String.[last]indexOf() patch
Date: 15 Feb 2002 13:09:22 +0100

Hi,

I made the following patch to fix a small problem pointed out by Patrick
Doyle in http://mail.gnu.org/pipermail/classpath/2001-August/001112.html
It only affects empty strings. It is based on the patch provided in
http://savannah.gnu.org/patch/?func=detailpatch&patch_id=23&group_id=85

2002-02-15  Mark Wielaard <address@hidden>

    Thanks to Patrick Doyle
    * java/lang/String.java (indexOf(String,int)): account for empty
    string.
    (lastIndexOf(String): account for empty string, and small
    optimization.
    (lastIndexOf(String,int): small optimization.

I also made Mauve tests that will hopefully go into Mauve.

Cheers,

Mark

Attachment: String.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]