Elsewhere, I saw him say that Swift comparisons use NFD normalization.
However running on the iSwift playground I found that
print("\u{0071}\u{0307}\u{0323}" == "\u{0071}\u{0323}\u{0307}");
gives false , despite this example, right from the "Canonical Equivalence" standard that Swift Documentation Applications follow .
false
So, what canonicalization is done by Swift, and is this a mistake?
It seems that this was a bug in Swift, which has since been fixed. With Swift 3 and Xcode 8.0,
print("\u{0071}\u{0307}\u{0323}" == "\u{0071}\u{0323}\u{0307}")
now displays true .
true
Source: https://habr.com/ru/post/1241936/More articles:different groups of markers in a strip - javascript.NET hide header but keep border - c #Architecture Design Help - OOP Hardness Principle - oopCopy or clone collections in Julia - collectionsWCF: the provided https URI scheme is invalid; expected "http". Parameter name: through when I call IInternal proxy = factory.CreateChannel (); by customer - c #Marshaling Pointer Vectors - haskellHow to add Shift + Ctrl + HX key binding to Delphi environment using ToolsApi? - delphiHow to create a NativeScript project for iOS on Windows? - windowsPresentationFramework.pdb not found - c #android google calendar api does not work when in release - androidAll Articles