| 53 | } |
| 54 | |
| 55 | bool EndsWithInsensitive(const std::string& value, const char* suffix) |
| 56 | { |
| 57 | const size_t suffixLength = std::strlen(suffix); |
| 58 | if (value.size() < suffixLength) |
| 59 | return false; |
| 60 | return ToLowerAscii(value.substr(value.size() - suffixLength)) == suffix; |
| 61 | } |
| 62 | |
| 63 | std::string StripPboExtension(const std::string& path) |
| 64 | { |
no test coverage detected