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