| 123 | } |
| 124 | |
| 125 | std::string removeTrailingWhitespace(const std::string& str, const char* whitespace) |
| 126 | { |
| 127 | std::string result(str); |
| 128 | result.erase(result.find_last_not_of(whitespace) + 1); |
| 129 | return result; |
| 130 | } |
| 131 | |
| 132 | std::string removeLeadingTrailingWhitespace(const std::string& str, const char* whitespace) |
| 133 | { |