Fix handling of LastIndexOf and empty strings.
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 9 Nov 2010 15:10:08 +0000 (13:10 -0200)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 9 Nov 2010 15:11:28 +0000 (13:11 -0200)
commit586295c91d12bf711b51c9788d43abad1e80f4a4
tree1d8f8dadf3d359ae3617a1b1cb15e737b2f79024
parent87f072d29cfcdbcf135f2300f784728fd0ecaa7d
Fix handling of LastIndexOf and empty strings.

* String.cs (LastIndexOf): All all overloads to
be compatible with MS with empty strings.

        * String.cs (LastIndexOfAny): Ditto.

* StringTest.cs: Add tests for the above.

Fixes #605340
mcs/class/corlib/System/String.cs
mcs/class/corlib/Test/System/StringTest.cs