Compares string versions.
More...
#include <VersionCompare.h>
|
static bool | NewerThanCurrent (const std::string ¤t, const std::string &other) |
|
static bool | NotOlderThan (const std::string &base, const std::string &comp) |
|
|
static void | parseVersion (int result[3], const std::string &input) |
|
Compares string versions.
static bool VersionCompare::NewerThanCurrent |
( |
const std::string & |
current, |
|
|
const std::string & |
other |
|
) |
| |
|
inlinestatic |
Compares two string versions.
- Parameters
-
current | Current string version. |
other | String version to compare. |
static bool VersionCompare::NotOlderThan |
( |
const std::string & |
base, |
|
|
const std::string & |
comp |
|
) |
| |
|
inlinestatic |
Compares two string versions.
- Parameters
-
base | Base string version. |
comp | String version to compare. |
static void VersionCompare::parseVersion |
( |
int |
result[3], |
|
|
const std::string & |
input |
|
) |
| |
|
inlinestaticprivate |
Converts version string into comparable integer array.
- Parameters
-
result | Integer array for the comparable result. |
input | String input to be parsed. |
The documentation for this class was generated from the following file: