Refactor NonAscii bit mask usage (#43537)
authorEric Erhardt <eric.erhardt@microsoft.com>
Mon, 19 Oct 2020 16:38:53 +0000 (11:38 -0500)
committerGitHub <noreply@github.com>
Mon, 19 Oct 2020 16:38:53 +0000 (11:38 -0500)
commit4df166441a70a4bd5c6199bfe481cd23f955ec8b
tree9b28fd73d3e93170fe6eb0f351e8285757e94256
parent7ba06879aca4230db0b575d259218fa7f8c44ddb
Refactor NonAscii bit mask usage (#43537)

* Refactor NonAscii bit mask usage

The Vector128 type is being left in a Blazor WASM application because Utf8Utility.GetPointerToFirstInvalidByte is always creating one, even though it isn't used.

I refactored the code such that the bit mask is no longer created on platforms it is not used, since it is only being used by Arm64.
src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Validation.cs