* @brief trim from beginning of string (left) * * @param s string to trim * @return std::string trimmed string */
| 79 | * @return std::string trimmed string |
| 80 | */ |
| 81 | inline std::string ltrim(std::string s) |
| 82 | { |
| 83 | s.erase(0, s.find_first_not_of(" \t\n\r\f\v")); |
| 84 | return s; |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * @brief Trim from both ends of string (right then left) |