| 23 | } |
| 24 | |
| 25 | std::string GetFileSuffix(const std::string& filename) |
| 26 | { |
| 27 | auto pos = filename.rfind('.'); |
| 28 | if (pos != std::string::npos) { |
| 29 | std::string suffix = filename.substr(pos + 1); |
| 30 | std::transform(suffix.begin(), suffix.end(), suffix.begin(), |
| 31 | [](unsigned char c) { return std::tolower(c); }); |
| 32 | return suffix; |
| 33 | } |
| 34 | return {}; |
| 35 | } |
| 36 | } // namespace |
| 37 | |
| 38 | bool UpdateFeedMigrationParser::ParseRelease(const std::string& jsonData, ReleaseInfo &releaseInfo) |
no test coverage detected