Home > Back-end >  How to determine contains Chinese characters in a string of characters (including: Chinese input sym
How to determine contains Chinese characters in a string of characters (including: Chinese input sym

Time:04-13

The inline bool isHaveSymbol (const STD: : wstring& WSTR)
{
int i=0;
While (WSTR [I]!=0)
{
If (WSTR [I] & amp; 0 x80)
{
return true;
}
i++;
}
return false;
}//this method intelligent judge the Chinese characters

CodePudding user response:

http://www.unicode.org

CodePudding user response:

Baidu once isascii () to see is that ok
  • Related