| 11133 | return lc; |
| 11134 | } |
| 11135 | std::string trim( std::string const& str ) { |
| 11136 | static char const* whitespaceChars = "\n\r\t "; |
| 11137 | std::string::size_type start = str.find_first_not_of( whitespaceChars ); |
| 11138 | std::string::size_type end = str.find_last_not_of( whitespaceChars ); |
| 11139 | |
| 11140 | return start != std::string::npos ? str.substr( start, 1+end-start ) : std::string(); |
| 11141 | } |
| 11142 | |
| 11143 | bool replaceInPlace( std::string& str, std::string const& replaceThis, std::string const& withThis ) { |
| 11144 | bool replaced = false; |
no test coverage detected