| 116 | } |
| 117 | |
| 118 | std::string removeLeadingWhitespace(const std::string& str, const char* whitespace) |
| 119 | { |
| 120 | std::string result(str); |
| 121 | result.erase(0, result.find_first_not_of(whitespace)); |
| 122 | return result; |
| 123 | } |
| 124 | |
| 125 | std::string removeTrailingWhitespace(const std::string& str, const char* whitespace) |
| 126 | { |