MCPcopy Create free account
hub / github.com/chrxh/alien / isVersionOutdated

Method isVersionOutdated

source/Base/VersionParserService.cpp:67–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67bool VersionParserService::isVersionOutdated(std::string const& otherVersionString)
68{
69 auto otherParts = getVersionParts(otherVersionString);
70 auto ownParts = getVersionParts(Const::ProgramVersion);
71 if (otherParts.major < ownParts.major) {
72 return true;
73 }
74 if (otherParts.major == 4 && otherParts.versionType == VersionType_Alpha && *otherParts.preRelease < 2) {
75 return true;
76 }
77 return false;
78}
79
80bool VersionParserService::isVersionNewer(std::string const& otherVersionString)
81{

Callers 2

pushTextColorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected