Contains routines related to the KIM API Semantic Version. More...
Functions | |
| std::string const & | GetSemVer () |
| Get the KIM API complete Semantic Version string. | |
| int | IsLessThan (std::string const &lhs, std::string const &rhs, int *const isLessThan) |
| Compare two Semantic Version strings. | |
| int | ParseSemVer (std::string const &version, int *const major, int *const minor, int *const patch, std::string *const prerelease, std::string *const buildMetadata) |
| Parse Semantic Version string into its six components. | |
Contains routines related to the KIM API Semantic Version.
| std::string const & KIM::SEM_VER::GetSemVer | ( | ) |
Get the KIM API complete Semantic Version string.
| int KIM::SEM_VER::IsLessThan | ( | std::string const & | lhs, |
| std::string const & | rhs, | ||
| int *const | isLessThan ) |
Compare two Semantic Version strings.
See the Semantic Version 2.0.0 standard for the definition of the partial ordering for valid Semantic Version strings.
| [in] | lhs | Left hand side version string in comparison. |
| [in] | rhs | Right hand side version string in comparison. |
| [out] | isLessThan | Truth value of lhs < rhs as defined by the Semantic Version 2.0.0 standard. |
true if ParseSemVer returns true for lhs or rhs. false otherwise.| int KIM::SEM_VER::ParseSemVer | ( | std::string const & | version, |
| int *const | major, | ||
| int *const | minor, | ||
| int *const | patch, | ||
| std::string *const | prerelease, | ||
| std::string *const | buildMetadata ) |
Parse Semantic Version string into its six components.
See the Semantic Version 2.0.0 standard for definitions of valid Semantic Version strings.
| [in] | version | The Semantic Version string to be parsed. |
| [out] | major | The major version number. |
| [out] | minor | The minor version number. |
| [out] | patch | The patch version number. |
| [out] | prerelease | The prerelease string. |
| [out] | buildMetadata | The build metadata string. |
true if minor and/or patch are missing. true if major number has a leading zero or is not a valid integer. true if minor number has a leading zero or is not a valid integer. true if patch number has a leading zero or is not a valid integer. true if the prerelease string is invalid. true if the build metadata string is invalid. false otherwise.NULL if the corresponding value is not needed.