2001-07-17 Jeffrey Stedfast <fejj@ximian.com>
commit7ba0609a3f9bd9eb82f84c85f227da4994be6444
authorJeffrey Stedfast <fejj@novell.com>
Wed, 18 Jul 2001 20:52:10 +0000 (18 20:52 -0000)
committerJeffrey Stedfast <fejj@novell.com>
Wed, 18 Jul 2001 20:52:10 +0000 (18 20:52 -0000)
tree8e1bae225d767394ac381b59157ada2baa61df01
parentcd5b27470daa8643d53d10fb2abbf5f869fce03a
2001-07-17  Jeffrey Stedfast  <fejj@ximian.com>

* String.cs (IndexOf): Slight optimization that allows skipping
over a few chars here and there. This isn't as good as using my
Boyer-Moore implementation, however, Boyer-Moore is only really
good for long strings (I plan on making the code decide which
string search algorithm it should use on-the-fly at some point).
(LastIndexOf): Fix to work correctly.
(BoyerMoore): Took out some unneeded code and fixed an edge-case.

svn path=/trunk/mcs/; revision=226
mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/String.cs