摘要: 在unicode 字符串中,中文的范围是在4E00..9FFF:CJK Unified Ideographs。通过对字符的unicode编码进行判断来确定字符是否为中文。protected bool IsChineseLetter(string input,int index){int code = 0;int chfrom = Convert.ToInt32("4e00", 16); //范围(0x4e00~0x9fff)转换成int(chfrom~chend) int chend = Convert.ToInt32("9fff", 16);if (i 阅读全文
posted @ 2013-12-03 10:32 zzlp 阅读(2030) 评论(0) 推荐(0) 编辑