Replace some unnecessary use of CompareInfo (#82988)
authorStephen Toub <stoub@microsoft.com>
Sun, 5 Mar 2023 05:11:19 +0000 (00:11 -0500)
committerGitHub <noreply@github.com>
Sun, 5 Mar 2023 05:11:19 +0000 (23:11 -0600)
commita64420c79cb63c485138f4f1352b8730f27d7b19
treef8f9ef1ba0c853ec11a8e2c8d851bc9ac3fc2054
parent14b0da0114081eb9e07f4e35fe7647218465c3a2
Replace some unnecessary use of CompareInfo (#82988)

Anywhere we're explicitly passing Ordinal or OrdinalIgnoreCase, the actual culture data is ignored.  We can just use the relevant string/span methods directly.
src/libraries/System.Private.CoreLib/src/System/Globalization/DateTimeParse.cs
src/libraries/System.Private.CoreLib/src/System/String.Searching.cs
src/libraries/System.Private.Xml/src/System/Xml/XPath/Internal/StringFunctions.cs
src/libraries/System.Private.Xml/src/System/Xml/Xsl/Runtime/XsltFunctions.cs