You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/design/features/globalization-hybrid-mode.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -398,6 +398,12 @@ Affected public APIs:
398
398
- String.Compare,
399
399
- String.Equals.
400
400
401
+
Mapped to Apple Native API `compare:options:range:locale:`(https://developer.apple.com/documentation/foundation/nsstring/1414561-compare?language=objc)
402
+
This implementation uses normalization techniques such as `precomposedStringWithCanonicalMapping`,
403
+
which can result in behavior differences compared to other platforms.
404
+
Specifically, the use of precomposed strings and additional locale-based string folding can affect the results of comparisons.
405
+
Due to these differences, the exact result of string compariso on Apple platforms may differ.
406
+
401
407
The number of `CompareOptions` and `NSStringCompareOptions` combinations are limited. Originally supported combinations can be found [here for CompareOptions](https://learn.microsoft.com/dotnet/api/system.globalization.compareoptions) and [here for NSStringCompareOptions](https://developer.apple.com/documentation/foundation/nsstringcompareoptions).
402
408
403
409
-`IgnoreSymbols` is not supported because there is no equivalent in native api. Throws `PlatformNotSupportedException`.
// On Apple platforms, the string comparison implementation relies on native Apple functions which uses normalization techniques, which can result in behavior differences compared to other platforms.
41
+
// Specifically, the use of precomposed strings and additional locale-based string folding can affect the results of comparisons with certain options like `IgnoreKanaType`.
0 commit comments