Version numbering API.
More...
Classes |
| struct | Version |
| | Struct representing a version number. More...
|
Functions |
| std::vector< std::string > | explode (const std::string &version) |
| | Explode a version string to an array of strings.
|
| int | compare (const std::string &versionA, const std::string &versionB) |
| | Compare version numbers.
|
| std::string | extract (const std::string &version) |
| | Extract version number from string.
|
Detailed Description
Function Documentation
Compare version numbers.
- Parameters:
-
- Returns:
- 1 if versionA is more recent than versionB, 0 otherwise, and -1 if error.
Explode a version string to an array of strings.
- Parameters:
-
| version | The string to explode. |
- Returns:
- An array of strings (including ".").
Extract version number from string.
- Parameters:
-
| version | The string containing the version number. |
- Returns:
- The version number, if any.