Fix String.Replace implementation (#11039)
authorTarek Mahmoud Sayed <tarekms@microsoft.com>
Tue, 18 Apr 2017 05:02:08 +0000 (22:02 -0700)
committerGitHub <noreply@github.com>
Tue, 18 Apr 2017 05:02:08 +0000 (22:02 -0700)
commitcb371832f635664f74f99b9e0fa405eef2148a2f
tree3ef1176aa804e82449f3f97e68c56afb368c0640
parenta2e17fb21db71da61bb6af477ca48a034f201ea9
Fix String.Replace implementation (#11039)

* Fix String.Replace implementation

String.Replace was callin ga low level CompareInfo method IndexOfCore which cannot be called in some conditions like when using ordinal ignore case option or when running in invariant mode.
The fix is to call a higher level method in CompareInfo which can handle such cases becfore calling the lower level method

* fix typo
src/mscorlib/src/System/Globalization/CompareInfo.cs
src/mscorlib/src/System/String.Manipulation.cs