* System/String.cs: Fix String.Split(String[],int,StringSplitOptions)
authorJonathan Pryor <jpryor@novell.com>
Tue, 8 Jun 2010 15:26:10 +0000 (15:26 -0000)
committerJonathan Pryor <jpryor@novell.com>
Tue, 8 Jun 2010 15:26:10 +0000 (15:26 -0000)
commit71d1db748c4a350b687165e4db7946f9803ef7f6
treef8dd40fb1c96dce60eb535a09fbdc6eed3079df5
parentca56169a259a6c76b38dd6d225be9411fc7923b6
* System/String.cs: Fix String.Split(String[],int,StringSplitOptions)
  so that:
  - it properly obeys the 'count' parameter; Fixes #601772.
  - "...".Split(new[]{"."}, 2, StringSplitOptions.RemoveEmptyEntries).Length==0
  - "A..".Split (new String[] { "." }, 2, StringSplitOptions.RemoveEmptyEntries) == new[]{"A"}
  - Remove duplicative array handling code by using List<String>.
* Test/System/StringTest.cs: Add tests for #601772 (i.e. take
  SplitStringChars(), change all the chars to Strings, and things
  should work).

svn path=/trunk/mcs/; revision=158670
mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/String.cs
mcs/class/corlib/Test/System/ChangeLog
mcs/class/corlib/Test/System/StringTest.cs