| 11401 | return lc; |
| 11402 | } |
| 11403 | std::string trim( std::string const& str ) { |
| 11404 | static char const* whitespaceChars = "\n\r\t "; |
| 11405 | std::string::size_type start = str.find_first_not_of( whitespaceChars ); |
| 11406 | std::string::size_type end = str.find_last_not_of( whitespaceChars ); |
| 11407 | |
| 11408 | return start != std::string::npos ? str.substr( start, 1+end-start ) : std::string(); |
| 11409 | } |
| 11410 | |
| 11411 | bool replaceInPlace( std::string& str, std::string const& replaceThis, std::string const& withThis ) { |
| 11412 | bool replaced = false; |
no test coverage detected