| 132 | } |
| 133 | |
| 134 | bool EndsWith(const std::string& text, const std::string& suffix) { |
| 135 | return text.size() >= suffix.size() && |
| 136 | text.compare(text.size() - suffix.size(), suffix.size(), suffix) == 0; |
| 137 | } |
| 138 | |
| 139 | bool LooksLikeOpenccMergedDict(const std::string& path) { |
| 140 | return EndsWith(path, ".ocd2"); |
no test coverage detected