[Mono-bugs] [Bug 78634][Min] New - Under-specification of
String.IndexOf method
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jun 13 12:26:54 EDT 2006
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 eda at waniasset.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78634
--- shadow/78634 2006-06-13 12:26:54.000000000 -0400
+++ shadow/78634.tmp.13033 2006-06-13 12:26:54.000000000 -0400
@@ -0,0 +1,30 @@
+Bug#: 78634
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity: Unknown
+Priority: Minor
+Component: System
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: eda at waniasset.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Under-specification of String.IndexOf method
+
+In the Mono documentation at
+<http://www.go-mono.com/docs/index.aspx?link=T%3ASystem.String%2F*>, the
+String.IndexOf(char) method is specified as:
+
+ Returns the index of the first occurrence of a specified Unicode
+character in the current instance.
+
+This doesn't say what happens in the case when the character isn't found.
+
+Similarly the other overloads of IndexOf, LastIndexOf and so on need to
+have a documented behaviour when what you're looking for is not found. It
+appears they return -1, but I can't see this documented anywhere.
More information about the mono-bugs
mailing list