.diacriticInsensitive在swift中工作正确吗?

时间:2017-01-16 18:29:10

标签: 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"

如何实现"Đ""đ" "D""d"

0 个答案:

没有答案