| 17 | } |
| 18 | |
| 19 | std::tuple<std::string_view, std::string_view> split(const std::string_view &view, std::string::value_type token) |
| 20 | { |
| 21 | auto pos = view.find(token); |
| 22 | if (pos == std::string_view::npos) { |
| 23 | return {view, std::string_view()}; |
| 24 | } |
| 25 | |
| 26 | return {view.substr(0, pos), view.substr(pos + 1)}; |
| 27 | } |
| 28 | |
| 29 | void ltrim(std::string &s) |
| 30 | { |
nothing calls this directly
no outgoing calls
no test coverage detected