<PackageReference Include="System.Text.Encodings.Web" Version="4.7.1" />

UnicodeUtility

static class UnicodeUtility
using System.Runtime.CompilerServices; namespace System.Text { internal static class UnicodeUtility { [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool IsAsciiCodePoint(uint value) { return value <= 127; } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool IsInRangeInclusive(uint value, uint lowerBound, uint upperBound) { return value - lowerBound <= upperBound - lowerBound; } } }