Description
The general problem is described in this forum post.
Reproduction
let APOSTROPHE: Character = "'"
let RIGHT_SINGLE_QUOTATION_MARK: Character = "’"
let MODIFIER_LETTER_TURNED_COMMA: Character = "ʻ"
let ʻokina = MODIFIER_LETTER_TURNED_COMMA // Official glyph for Hawaiian ʻokina.
let MODIFIER_LETTER_SMALL_P: Character = "ᵖ"
assert("Joe\(RIGHT_SINGLE_QUOTATION_MARK)s".localizedStandardContains("Joe\(APOSTROPHE)s"))
assert("Joe\(MODIFIER_LETTER_TURNED_COMMA)s".localizedStandardContains("Joe\(APOSTROPHE)s"))
assert("\(ʻokina)uli\(ʻokina)uli".localizedStandardContains("\(APOSTROPHE)uli\(APOSTROPHE)uli"))
assert("\(MODIFIER_LETTER_SMALL_P)recise".localizedStandardContains("precise"))
Expected behavior
All assertions pass
Environment
swift-driver version: 1.127.15 Apple Swift version 6.2.4 (swiftlang-6.2.4.1.4 clang-1700.6.4.2)
Target: arm64-apple-macosx26.0
Additional information
No response
Description
The general problem is described in this forum post.
Reproduction
Expected behavior
All assertions pass
Environment
swift-driver version: 1.127.15 Apple Swift version 6.2.4 (swiftlang-6.2.4.1.4 clang-1700.6.4.2)
Target: arm64-apple-macosx26.0
Additional information
No response