Solve recently introduce ASCII regression (#80709)
authorAdam Sitnik <adam.sitnik@gmail.com>
Tue, 17 Jan 2023 21:24:08 +0000 (22:24 +0100)
committerGitHub <noreply@github.com>
Tue, 17 Jan 2023 21:24:08 +0000 (22:24 +0100)
commitf3a0f4fb5d6bf6253eb4d7c9ec48f68d0e25fcf4
treee7479d32d74b4d02e6d38c9a895794ce1fa06879
parenta024a97885bc23e833a5d1d1696029181b939f05
Solve recently introduce ASCII regression (#80709)

* call the helper methods directly to reduce overhead (important for small inputs)

* inline the helper that was supposed to be public into it's only caller
src/libraries/System.Private.CoreLib/src/System/Text/ASCIIEncoding.cs
src/libraries/System.Private.CoreLib/src/System/Text/Ascii.Utility.cs
src/libraries/System.Private.CoreLib/src/System/Text/Ascii.cs
src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf16Utility.Validation.cs
src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Transcoding.cs
src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Validation.cs