func isIncludeChineseIn(string: String) -> Bool {
for (_, value) in string.enumerated() {
if ("\u{4E00}" <= value && value <= "\u{9FA5}") {
return true
}
}
return false
}
func isIncludeChineseIn(string: String) -> Bool {
for (_, value) in string.enumerated() {
if ("\u{4E00}" <= value && value <= "\u{9FA5}") {
return true
}
}
return false
}
本文标题:iOS判读该字符串是否包含中文
本文链接:https://www.haomeiwen.com/subject/ullxfktx.html
网友评论