| 53 | } |
| 54 | |
| 55 | bool ends_with(std::string const& input, std::string const& test) { |
| 56 | if (test.size() > input.size()) return false; |
| 57 | return std::equal(test.rbegin(), test.rend(), input.rbegin()); |
| 58 | } |
| 59 | |
| 60 | // A helper class for reading lines from file. |
| 61 | // A line buffer is maintained. It |