| 373 | } |
| 374 | |
| 375 | std::size_t Utils::commonPrefixLength(const std::string& a, const std::string& b) |
| 376 | { |
| 377 | auto pair = std::mismatch(a.begin(), a.end(), b.begin(), b.end()); |
| 378 | return pair.first - a.begin(); |
| 379 | } |
| 380 | |
| 381 | std::string Utils::strippedAndLowered(std::string str) |
| 382 | { |