@objc class func isChineseWord(_ text:String)->Bool
{
for character:Character in text
{
if "\(character)".lengthOfBytes(using: String.Encoding.utf8) != 3
{
return false
}
}
return true
}
网友评论