public int getStrokeCount(char charcator) {
byte[] bytes = (String.valueOf(charcator)).getBytes();
if (bytes == || bytes.length > 2 || bytes.length <= 0) {
// 错误引用,非合法字符
return 0;
}
if (bytes.length == 1) {
// 英文字符
return 0;
}
if (bytes.length == 2) {
// 中文字符
int highByte = 256 + bytes[0];
int lowByte = 256 + bytes[1];
return GetGB2312StrokeCountM(highByte, lowByte);
}
// 未知错误
return 0;
}
///
/// 获取字符串中所有汉字的笔画总和
///
/// 字符串
///
public int GetStrokeCount(String Words){