while (i < len)
{
- while (i < len && isspace(str[i]))
+ while (i < len && isspace((unsigned char)str[i]))
{
++i;
}
j = i;
- while (i < len && !isspace(str[i]))
+ while (i < len && !isspace((unsigned char)str[i]))
{
++i;
}
{
result.push_back( str.substr(j, i-j) );
++countsplit;
- while (i < len && isspace(str[i]))
+ while (i < len && isspace((unsigned char)str[i]))
{
++i;
}