Merge pull request #594 from asuessenbach/trim

Trim tokenized sub-strings.
This commit is contained in:
Andreas Süßenbach 2020-05-04 22:59:05 +02:00 committed by GitHub
commit 1636a526dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -726,7 +726,7 @@ std::vector<std::string> tokenize( std::string const & tokenString, std::string
end = tokenString.find( separator, start );
if ( start != end )
{
tokens.push_back( tokenString.substr( start, end - start ) );
tokens.push_back( trim( tokenString.substr( start, end - start ) ) );
}
start = end + separator.length();
} while ( end != std::string::npos );