MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / IsLower

Method IsLower

Goldleaf/include/base.hpp:282–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280 static Version FromString(const std::string &ver_str);
281
282 inline constexpr bool IsLower(const Version &other) const {
283 if(this->major > other.major) {
284 return true;
285 }
286 else if(this->major == other.major) {
287 if(this->minor > other.minor) {
288 return true;
289 }
290 else if(this->minor == other.minor) {
291 if(this->micro > other.micro) {
292 return true;
293 }
294 }
295 }
296 return false;
297 }
298
299 inline constexpr bool IsHigher(const Version &other) const {
300 return !this->IsLower(other) && !this->IsEqual(other);

Callers 2

IsHigherMethod · 0.95
StartUpdateSearchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected