| 127 | } |
| 128 | |
| 129 | bool startsWith(const std::string& string, const std::string& search) |
| 130 | { |
| 131 | if (string.size() < search.size()) |
| 132 | return false; |
| 133 | return (std::mismatch(search.begin(), search.end(), string.begin()).first |
| 134 | == search.end()); |
| 135 | } |
| 136 | |
| 137 | bool endsWith(const std::string& string, const std::string& search) |
| 138 | { |