| 142 | |
| 143 | |
| 144 | bool startsWith(const std::string& str, const std::string& prefix) { |
| 145 | if (str.size() < prefix.size()) |
| 146 | return false; |
| 147 | return std::equal(prefix.begin(), prefix.end(), str.begin()); |
| 148 | } |
| 149 | |
| 150 | |
| 151 | bool endsWith(const std::string& str, const std::string& suffix) { |
no test coverage detected