标签: swift xcode swift3 nsstring
在swift 3中,我使用以下代码:
let str = "Hello Ž Đ Š Č ž đ ć č š" let x = str.folding(options: .diacriticInsensitive, locale: .current)
但x将为"Hello Z Đ S C z đ c c s"。
"Hello Z Đ S C z đ c c s"
如何实现"Đ"和"đ" "D"和"d"?
"Đ"
"đ"
"D"
"d"