modify ChineseFilter.hpp to identify ansi char to speed up

This commit is contained in:
wyy 2013-12-06 04:20:57 -08:00
parent 0e61f02afe
commit 1576d15b2f
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ namespace CppJieba
private:
CHAR_TYPE _charType(uint16_t x)const
{
if((0x0030 <= x && x<= 0x0039) || (0x0041 <= x && x <= 0x005a ) || (0x0061 <= x && x <= 0x007a))
if(x < 0x0080)
{
return DIGIT_OR_LETTER;
}

View File

@ -2,7 +2,7 @@
他来到了网易杭研大厦
杭研
小明硕士毕业于中国科学院计算所,后在日本京都大学深造
我来自北京邮电大学。。。学号091111xx。。。
我来自北京邮电大学。。。 学号 091111xx。。。
来这里看看别人正在搜索什么吧
我来到南京市长江大桥
请在一米线外等候