| 146 | /** Return true if the second string is a suffix of the string s. */ |
| 147 | template <size_t N> |
| 148 | bool endsWith(const std::string& s, const char (&suffix)[N]) |
| 149 | { |
| 150 | size_t n = N - 1; |
| 151 | return s.size() > n && equal(s.end() - n, s.end(), suffix); |
| 152 | } |
| 153 | |
| 154 | /** Return true if the second string is a suffix of the string s. */ |
| 155 | static inline |