Strips leading and trailing spaces from a string
| 121 | |
| 122 | // Strips leading and trailing spaces from a string |
| 123 | std::string trim(const std::string& s, const std::string& c) { |
| 124 | return trimLeft(trimRight(s, c), c); |
| 125 | } |
| 126 | |
| 127 | std::string trimRight(const std::string& s, const std::string& c) { |
| 128 | std::string str(s); |