Added ischinese_unicode function

This commit is contained in:
Pisces000221 2014-02-08 14:15:42 +08:00
parent ae8057b933
commit 7aebdd89a5
1 changed files with 5 additions and 0 deletions

View File

@ -171,6 +171,11 @@ bool isspace_unicode(unsigned short ch)
|| ch == 0x205F || ch == 0x3000;
}
bool ischinese_unicode(unsigned short ch)
{
return ch >= 0x4E00 && ch <= 0x9FBF;
}
void cc_utf8_trim_ws(std::vector<unsigned short>* str)
{
int len = static_cast<int>(str->size());