| 42 | return value; |
| 43 | } |
| 44 | |
| 45 | std::string trim(std::string value) { |
| 46 | auto is_space = [](unsigned char ch) { return std::isspace(ch) != 0; }; |
| 47 | value.erase(value.begin(), std::find_if(value.begin(), value.end(), [&](char ch) { return !is_space(ch); })); |
| 48 | value.erase(std::find_if(value.rbegin(), value.rend(), [&](char ch) { return !is_space(ch); }).base(), value.end()); |
| 49 | return value; |
| 50 | } |
| 51 | |
| 52 | std::string json_quote(std::string_view value) { |
no test coverage detected