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;
}