| 15 | { |
| 16 | |
| 17 | inline void trim(std::string& _str, bool _left = true, bool _right = true) |
| 18 | { |
| 19 | if (_right) |
| 20 | _str.erase(_str.find_last_not_of(" \t\r") + 1); |
| 21 | if (_left) |
| 22 | _str.erase(0, _str.find_first_not_of(" \t\r")); |
| 23 | } |
| 24 | |
| 25 | template<typename T> |
| 26 | inline std::string toString(T _value) |
no test coverage detected