/**
* 判断字符串是否为英文
* @author shore
* @date 20150701
* @param str
* @return
*/
public static boolean isCnorEn(String str) {
for (int i = 0; i < str.length(); i++) {
if(str.charAt(i) >= 0x0000 && str.charAt(i) <= 0x00FF)
continue ;
return false;
}
return true;
}
/**
* 判断字符串是否为中文
* @author shore
* @date 20150701
* @param str
* @return
*/
public static boolean isConrZN(String str) {
for (int i = 0; i < str.length(); i++) {
if (str.charAt(i) >= 0x0391 && str.charAt(i) <= 0xFFE5)
continue ;
return false;
}
return true;
}