Use MemoryExtensions.Equals in CharArrayHelpers.EqualsOrdinalAsciiIgnoreCase (#80561)
authorStephen Toub <stoub@microsoft.com>
Fri, 13 Jan 2023 00:15:47 +0000 (19:15 -0500)
committerGitHub <noreply@github.com>
Fri, 13 Jan 2023 00:15:47 +0000 (19:15 -0500)
commitcb73bd4023187e3016b78db50c3a3ac8d60f5f3a
tree2352c3d65e964eb4e241efb5e774c0e9e0b899cd
parenteb4d23002dba50290b37cc616ef1cf7ff914ed19
Use MemoryExtensions.Equals in CharArrayHelpers.EqualsOrdinalAsciiIgnoreCase (#80561)

* Use MemoryExtensions.Equals in CharArrayHelpers.EqualsOrdinalAsciiIgnoreCase

* Delete CharArrayHelpers.EqualsOrdinalAsciiIgnoreCase/Trim

Just use span directly.
src/libraries/Common/src/System/CharArrayHelpers.cs
src/libraries/Common/src/System/Net/HttpKnownHeaderNames.TryGetHeaderName.cs
src/libraries/Common/tests/Common.Tests.csproj
src/libraries/Common/tests/Tests/System/CharArrayHelpersTests.cs [deleted file]
src/libraries/System.Net.Http.WinHttpHandler/src/System/Net/Http/WinHttpResponseHeaderReader.cs
src/libraries/System.Net.Http.WinHttpHandler/src/System/Net/Http/WinHttpResponseParser.cs