| 57 | } |
| 58 | |
| 59 | bool beginsWith(const std::string& value, const std::string& ending) |
| 60 | { |
| 61 | if (ending.size() > value.size()) |
| 62 | return false; |
| 63 | return std::equal(ending.begin(), ending.end(), value.begin()); |
| 64 | } |
| 65 | |
| 66 | // Case-insensitive for endings within ASCII. |
| 67 | bool endsWith(const std::string& value, const std::string& ending) |
no test coverage detected