Split OrdinalIgnoreCaseComparer from OrdinalComparer
authorStephen Toub <stoub@microsoft.com>
Thu, 23 Feb 2017 14:28:30 +0000 (09:28 -0500)
committerStephen Toub <stoub@microsoft.com>
Fri, 24 Feb 2017 03:10:24 +0000 (22:10 -0500)
commitfef8182646f0ca47f76eccf13d7b030c881e044f
tree01fbb46762d22e46c809d06521aceab7c10a56b9
parentd87c53b04845a9d6ba9f0de03f407762ae179436
Split OrdinalIgnoreCaseComparer from OrdinalComparer

They're both used very frequently, and we can eliminate the branches on checking _ignoreCase from every operation.

Commit migrated from https://github.com/dotnet/coreclr/commit/a15b54477fb9503d2787b751e2c0b25c12becf37
src/coreclr/src/mscorlib/src/System/StringComparer.cs