diff options
author | Pent Ploompuu <kaalikas@gmail.com> | 2018-11-15 19:04:19 +0200 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-11-15 09:04:19 -0800 |
commit | 8241c492ac7fb7ef850f585c5ef2a70928feea8e (patch) | |
tree | 1a47ecf608168bfef9b8c1a679d261a09c63de71 /src/System.Private.CoreLib/shared/System/Char.cs | |
parent | 9e7583d1402957472e41b6364112a69040399313 (diff) | |
download | coreclr-8241c492ac7fb7ef850f585c5ef2a70928feea8e.tar.gz coreclr-8241c492ac7fb7ef850f585c5ef2a70928feea8e.tar.bz2 coreclr-8241c492ac7fb7ef850f585c5ef2a70928feea8e.zip |
Update Unicode data and optimize CharUnicodeInfo indexes (#20983)
* Update Unicode data and optimize CharUnicodeInfo indexes
* Add new GenUnicodeProp to tools
* Add licence headers
* Add big-endian support
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Char.cs')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Char.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Char.cs b/src/System.Private.CoreLib/shared/System/Char.cs index e9511f2f92..7f24b4029d 100644 --- a/src/System.Private.CoreLib/shared/System/Char.cs +++ b/src/System.Private.CoreLib/shared/System/Char.cs @@ -275,7 +275,7 @@ namespace System { return (IsWhiteSpaceLatin1(c)); } - return CharUnicodeInfo.IsWhiteSpace(c); + return CheckSeparator(CharUnicodeInfo.GetUnicodeCategory(c)); } @@ -795,7 +795,7 @@ namespace System return IsWhiteSpaceLatin1(s[index]); } - return CharUnicodeInfo.IsWhiteSpace(s, index); + return CheckSeparator(CharUnicodeInfo.GetUnicodeCategory(s, index)); } public static UnicodeCategory GetUnicodeCategory(char c) |