mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
modify ChineseFilter.hpp to identify ansi char to speed up
This commit is contained in:
parent
0e61f02afe
commit
1576d15b2f
@ -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;
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
他来到了网易杭研大厦
|
||||
杭研
|
||||
小明硕士毕业于中国科学院计算所,后在日本京都大学深造
|
||||
我来自北京邮电大学。。。学号091111xx。。。
|
||||
我来自北京邮电大学。。。 学号 091111xx。。。
|
||||
来这里看看别人正在搜索什么吧
|
||||
我来到南京市长江大桥
|
||||
请在一米线外等候
|
||||
|
Loading…
x
Reference in New Issue
Block a user