|
@@ -301,8 +301,8 @@ std::string ConfigFileParser::toString() const {
|
301
|
|
301
|
|
302
|
// _____________________________________________________________________________
|
302
|
// _____________________________________________________________________________
|
303
|
std::string ConfigFileParser::trim(const std::string& str) const {
|
303
|
std::string ConfigFileParser::trim(const std::string& str) const {
|
304
|
- size_t s = str.find_first_not_of(' ');
|
|
|
305
|
- size_t e = str.find_last_not_of(' ');
|
|
|
|
|
304
|
+ size_t s = str.find_first_not_of(" \f\n\r\t\v");
|
|
|
305
|
+ size_t e = str.find_last_not_of(" \f\n\r\t\v");
|
306
|
if (s == std::string::npos) return "";
|
306
|
if (s == std::string::npos) return "";
|
307
|
return str.substr(s, e - s + 1);
|
307
|
return str.substr(s, e - s + 1);
|
308
|
}
|
308
|
}
|