| 9597 | return lc; |
| 9598 | } |
| 9599 | std::string trim( std::string const& str ) { |
| 9600 | static char const* whitespaceChars = "\n\r\t "; |
| 9601 | std::string::size_type start = str.find_first_not_of( whitespaceChars ); |
| 9602 | std::string::size_type end = str.find_last_not_of( whitespaceChars ); |
| 9603 | |
| 9604 | return start != std::string::npos ? str.substr( start, 1+end-start ) : std::string(); |
| 9605 | } |
| 9606 | |
| 9607 | bool replaceInPlace( std::string& str, std::string const& replaceThis, std::string const& withThis ) { |
| 9608 | bool replaced = false; |
no test coverage detected