omni::extras::prereleaseCmp

Defined in omni/extras/Version.h

inline int omni::extras::prereleaseCmp(const std::string &x, const std::string &y)

Semantic Version pre-release comparator according to rules at https://semver.org/#spec-item-11.

Parameters
  • x – A pre-release value from a SemanticVersion

  • y – A pre-release value from a SemanticVersion

Returns

-1 if x should be ordered-before y; 0 if they are equal; 1 in all other cases