[Mono-bugs] [Bug 41411][Min] Changed - String.IndexOf(String.Empty) does not return 0;
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Fri, 9 May 2003 22:54:44 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=41411
--- shadow/41411 Tue Apr 15 19:52:18 2003
+++ shadow/41411.tmp.26847 Fri May 9 22:54:44 2003
@@ -1,14 +1,14 @@
Bug#: 41411
Product: Mono/Class Libraries
Version: unspecified
-OS:
+OS: unknown
OS Details:
-Status: NEW
-Resolution:
-Severity:
+Status: RESOLVED
+Resolution: FIXED
+Severity: Unknown
Priority: Minor
Component: CORLIB
AssignedTo: mono-bugs@ximian.com
ReportedBy: tom@acquist.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -63,6 +63,10 @@
string is always found at the start of a string. The spec also says that
the IndexOf method should return sindex for an empty string, so this is an
issue in more than just the single argument IndexOf.
No fix is provided, as IndexOf ends with a call to InternalIndexOf where
the issue probably lies. Basically, it would be something to the effect of
"if(value.Length == 0){return sindex;}".
+
+------- Additional Comments From gonzalo@ximian.com 2003-05-09 22:54 -------
+Fixed in CVS.
+Also fixed a similar problem with LastIndexOf.