| 14 | namespace { |
| 15 | |
| 16 | std::string trim(std::string value) { |
| 17 | auto is_space = [](unsigned char ch) { return std::isspace(ch) != 0; }; |
| 18 | value.erase(value.begin(), std::find_if(value.begin(), value.end(), [&](char ch) { return !is_space(static_cast<unsigned char>(ch)); })); |
| 19 | value.erase(std::find_if(value.rbegin(), value.rend(), [&](char ch) { return !is_space(static_cast<unsigned char>(ch)); }).base(), value.end()); |
| 20 | return value; |
| 21 | } |
| 22 | |
| 23 | std::vector<std::string> split_pipe(const std::string & value) { |
| 24 | std::vector<std::string> out; |
no test coverage detected