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:
|
private:
|
||||||
CHAR_TYPE _charType(uint16_t x)const
|
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;
|
return DIGIT_OR_LETTER;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user