| 26 | |
| 27 | namespace { |
| 28 | bool starts_with(std::string const& str, std::string const& prefix) |
| 29 | { |
| 30 | if (str.length() < prefix.length()) |
| 31 | return false; |
| 32 | return std::equal(prefix.begin(), prefix.end(), |
| 33 | str.begin()); |
| 34 | } |
| 35 | |
| 36 | std::string trim(std::string&& str, |
| 37 | const std::string& whitespace = " \t\n") |
no outgoing calls
no test coverage detected