标签:ar sp on bs amp nbsp har c return
bool IsDigitString(QString strSource)
{
bool bDigit = false;
if (strSource.isEmpty())
{
return bDigit;
}
QByteArray strByteArray = strSource.toLatin1();
const char *chString = strByteArray.data();
while (*chString && *chString>=‘0‘ && *chString<=‘9‘) chString++;
if (*chString)
{
bDigit = false;
}
else
{
bDigit = true;
}
return bDigit;
}
标签:ar sp on bs amp nbsp har c return
原文地址:http://www.cnblogs.com/sz-leez/p/4084293.html