27 #define ISWHITESPACE(ch) (((ch >= 9)&&(ch<=0xd))||(ch== ' ')) 33 return ((psz == NULL) || (psz[0] ==
'\0'));
39 const char* psz = str.c_str();
40 size_t length = str.length();
42 const int diff = (
'a' -
'A');
44 if ((psz == NULL) || (length == 0))
51 for (
size_t index = 0; index < length; index++)
54 if ((ch >=
'A') && (ch <=
'Z'))
67 void Trim(std::string& str)
69 const char* psz = str.c_str();
76 int length = str.length();
81 for (
int index = 0; index < length; index++)
102 str = str.substr(start, end-start+1);
118 if(nVal < nMinValue)
return -1;
119 if(nVal > nMaxValue)
return -1;
int ValidateNumberString(const char *psz, int nMinValue, int nMaxValue, int *pnResult)
bool IsNullOrEmpty(const char *psz)
void ToLower(std::string &str)
void Trim(std::string &str)