MCPcopy Create free account
hub / github.com/audacity/audacity / GetFileSuffix

Function GetFileSuffix

src/update/UpdateFeedMigrationParser.cpp:25–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25std::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
38bool UpdateFeedMigrationParser::ParseRelease(const std::string& jsonData, ReleaseInfo &releaseInfo)

Callers 1

ParseReleaseMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected