From 9f513350e3cea5cc56f9d7fb8e006382ec5043ff Mon Sep 17 00:00:00 2001 From: Dennis Yemelyanov <10681271+dennis-yemelyanov@users.noreply.github.com> Date: Sun, 6 Mar 2022 14:40:24 -0800 Subject: [PATCH] Try to remove "-" and "'" from HighCharTable (#66200) --- .../src/System/Globalization/CompareInfo.Icu.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Globalization/CompareInfo.Icu.cs b/src/libraries/System.Private.CoreLib/src/System/Globalization/CompareInfo.Icu.cs index 58c8183..f4d6ebf 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Globalization/CompareInfo.Icu.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Globalization/CompareInfo.Icu.cs @@ -91,7 +91,7 @@ namespace System.Globalization Debug.Assert(!GlobalizationMode.Invariant); Debug.Assert(!target.IsEmpty); - Debug.Assert(_isAsciiEqualityOrdinal); + Debug.Assert(_isAsciiEqualityOrdinal && CanUseAsciiOrdinalForOptions(options)); fixed (char* ap = &MemoryMarshal.GetReference(source)) fixed (char* bp = &MemoryMarshal.GetReference(target)) @@ -195,7 +195,7 @@ namespace System.Globalization Debug.Assert(!GlobalizationMode.Invariant); Debug.Assert(!target.IsEmpty); - Debug.Assert(_isAsciiEqualityOrdinal); + Debug.Assert(_isAsciiEqualityOrdinal && CanUseAsciiOrdinalForOptions(options)); fixed (char* ap = &MemoryMarshal.GetReference(source)) fixed (char* bp = &MemoryMarshal.GetReference(target)) @@ -314,7 +314,7 @@ namespace System.Globalization Debug.Assert(!GlobalizationMode.Invariant); Debug.Assert(!prefix.IsEmpty); - Debug.Assert(_isAsciiEqualityOrdinal); + Debug.Assert(_isAsciiEqualityOrdinal && CanUseAsciiOrdinalForOptions(options)); int length = Math.Min(source.Length, prefix.Length); @@ -389,7 +389,7 @@ namespace System.Globalization Debug.Assert(!GlobalizationMode.Invariant); Debug.Assert(!prefix.IsEmpty); - Debug.Assert(_isAsciiEqualityOrdinal); + Debug.Assert(_isAsciiEqualityOrdinal && CanUseAsciiOrdinalForOptions(options)); int length = Math.Min(source.Length, prefix.Length); @@ -479,7 +479,7 @@ namespace System.Globalization Debug.Assert(!GlobalizationMode.Invariant); Debug.Assert(!suffix.IsEmpty); - Debug.Assert(_isAsciiEqualityOrdinal); + Debug.Assert(_isAsciiEqualityOrdinal && CanUseAsciiOrdinalForOptions(options)); int length = Math.Min(source.Length, suffix.Length); @@ -554,7 +554,7 @@ namespace System.Globalization Debug.Assert(!GlobalizationMode.Invariant); Debug.Assert(!suffix.IsEmpty); - Debug.Assert(_isAsciiEqualityOrdinal); + Debug.Assert(_isAsciiEqualityOrdinal && CanUseAsciiOrdinalForOptions(options)); int length = Math.Min(source.Length, suffix.Length); @@ -877,13 +877,13 @@ namespace System.Globalization false, /*0x24, $*/ false, /*0x25, %*/ false, /*0x26, &*/ - true, /*0x27, '*/ + false, /*0x27, '*/ false, /*0x28, (*/ false, /*0x29, )*/ false, /*0x2A **/ false, /*0x2B, +*/ false, /*0x2C, ,*/ - true, /*0x2D, -*/ + false, /*0x2D, -*/ false, /*0x2E, .*/ false, /*0x2F, /*/ false, /*0x30, 0*/ -- 2.7.4