containsChinese static method
判断字符串中是否包含中文 @param str 字符串 @return 包含汉字返回true,否则返回false
Implementation
static bool containsChinese(String str) {
for (int i = 0, len = str.length; i < len; i++) {
if (isChinese(str[i])) {
return true;
}
}
return false;
}