Fix bad range check in TextInfo.IndexOfStringOrdinalIgnoreCase (dotnet/coreclr#12478)
authorAtsushi Kanamori <AtsushiKan@users.noreply.github.com>
Tue, 27 Jun 2017 18:51:28 +0000 (11:51 -0700)
committerGitHub <noreply@github.com>
Tue, 27 Jun 2017 18:51:28 +0000 (11:51 -0700)
commitc41b682892c58cb8896f397086b917e9ba9c86c3
tree8f9f695ec4343672421027e8ed2034889f12a7b5
parentc4d762aea9a2b9eeeef5e6af87bfd6716c76818c
Fix bad range check in TextInfo.IndexOfStringOrdinalIgnoreCase (dotnet/coreclr#12478)

Breaks:

   int idx = "\uabcd".IndexOf("", 1, StringComparison.OrdinalIgnoreCase);

should return 1, returns -1 instead.

(propagated fix from CoreRT)

Commit migrated from https://github.com/dotnet/coreclr/commit/53900a63a76cce3e054bd93d1533348edc2c71f1
src/coreclr/src/mscorlib/src/System/Globalization/TextInfo.cs