Repository navigation
[iOS][non-icu] HybridGlobalization support IgnoreKanaType - #96002
Conversation
|
Tagging subscribers to this area: @dotnet/area-system-globalization Issue DetailsSupport IgnoreKanaType by using Contributes to #80689
|
|
Tagging subscribers to 'os-ios': @steveisok, @akoeplinger, @kotlarmilos Issue DetailsSupport IgnoreKanaType by using Contributes to #80689
|
|
/azp run runtime-maccatalyst |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run runtime-ioslikesimulator |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run runtime-ioslike |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run runtime-ioslikesimulator |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| // Edge case of the Ignore Width. | ||
| Assert.False(string.Compare("\u3162\u3163", "\uFFDB\uFFDC", CultureInfo.InvariantCulture, CompareOptions.None) == 0, $"Expect '0x3162 0x3163' != '0xFFDB 0xFFDC'"); | ||
| if (!PlatformDetection.IsHybridGlobalizationOnBrowser) | ||
| if (!PlatformDetection.IsHybridGlobalizationOnBrowser && !PlatformDetection.IsHybridGlobalizationOnOSX) |
There was a problem hiding this comment.
we could probably simplify this if to IsHybridGlobalization right?
|
|
||
| // in HybridGlobalization on Browser IgnoreKanaType is supported only for "ja-JP" | ||
| CultureInfo ignoreKanaTypeTestedCulture = PlatformDetection.IsHybridGlobalizationOnBrowser ? new CultureInfo("ja-JP") : CultureInfo.InvariantCulture; | ||
| CultureInfo ignoreKanaTypeTestedCulture = PlatformDetection.IsHybridGlobalization ? new CultureInfo("ja-JP") : CultureInfo.InvariantCulture; |
There was a problem hiding this comment.
is this change required? according to the comment we only need to use ja-JP on browser
There was a problem hiding this comment.
It is, as this test case fails when using InvariantCulture on iOS also. But for iOS IgnoreKanaType is supported in other cultures, there are other test cases that pass.
I will add comment for iOS that this particular test case is behaving different.
|
/azp run runtime-ioslikesimulator |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run runtime-ioslike |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run runtime-maccatalyst |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Failures are not related. |
Support IgnoreKanaType by using
kCFStringTransformHiraganaKatakana.Enable all test cases related to IgnoreKanaType on iOS.
Contributes to #80689
cc @SamMonoRT