谢谢 http://blog.youkuaiyun.com/kepoon/article/details/8502403
bool checkString(const char * iName)
{bool result = false;
while (*iName)
{
if ((*iName) & 0x80)
{
result = true;
++iName;//汉字跳过一个字节检测
}
else if (((*iName) >= 'a' && (*iName) <= 'z' || (*iName) >= 'A' && (*iName) <= 'Z') || ((*iName) >= '0' && (*iName) <= '9'))
{
result = true;
}
else
{
result = false;
break;
}
++iName;
}
return result;
}