From 332be7a5ded84bb857928975805dd9fce9ab71c1 Mon Sep 17 00:00:00 2001 From: Miha Zupan Date: Sat, 18 Jan 2025 13:21:06 +0100 Subject: [PATCH] Improve char.IsWhiteSpace for non-ASCII --- .../src/System/Globalization/CharUnicodeInfo.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Private.CoreLib/src/System/Globalization/CharUnicodeInfo.cs b/src/libraries/System.Private.CoreLib/src/System/Globalization/CharUnicodeInfo.cs index 66d0f4f06ff75f..1b13711ff1e59c 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Globalization/CharUnicodeInfo.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Globalization/CharUnicodeInfo.cs @@ -443,6 +443,7 @@ private static int GetCodePointFromString(string s, int index) /// information is stored. Used for getting the Unicode category, bidi information, /// and whitespace information. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] private static nuint GetCategoryCasingTableOffsetNoBoundsChecks(uint codePoint) { UnicodeDebug.AssertIsValidCodePoint(codePoint);