This class implements semver 2.0.0 with one modification: More...
#include <Version.h>
Public Member Functions | |
bool | operator< (const Version &other) const |
bool | operator== (const Version &other) const |
bool | operator> (const Version &other) const |
std::string | vBuild () const |
Version (const std::string &str) | |
std::string | vLabel () const |
int | vMajor () const |
int | vMinor () const |
int | vPatch () const |
Private Member Functions | |
void | parse (const std::string &str) |
Static Private Member Functions | |
static bool | comparePreleaseField (const std::string &pr1, const std::string &pr2) |
static bool | comparePreleases (const std::string &pr1, const std::string &pr2) |
static bool | isNumber (const std::string &str) |
template<class InputIt1 , class InputIt2 > | |
static bool | lexicographicalCompare (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2) |
static std::vector< std::string > | split (const std::string &s, char delimiter) |
Private Attributes | |
std::string | m_build |
std::string | m_label |
int | m_major |
int | m_minor |
int | m_patch |
This class implements semver 2.0.0 with one modification:
For backwards compatibility we allow to ommit the patch version. A missing patch version is assumed to have the patch version number of 0.
|
inlineexplicit |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlinestaticprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |