ENH: Handle all white spaces, fix problem on cygwin

This commit is contained in:
Andy Cedilnik 2003-10-16 07:49:32 -04:00
parent db3cd82590
commit 2ff2353079
1 changed files with 2 additions and 2 deletions

View File

@ -66,8 +66,8 @@ static struct tm* GetNightlyTime(std::string str)
static std::string CleanString(std::string str)
{
std::string::size_type spos = str.find_first_not_of(" \n\t");
std::string::size_type epos = str.find_last_not_of(" \n\t");
std::string::size_type spos = str.find_first_not_of(" \n\t\r\f\v");
std::string::size_type epos = str.find_last_not_of(" \n\t\r\f\v");
if ( spos == str.npos )
{
return std::string();