Functions to compare server version strings and and determine if clone should be allowed.
More...
#include <algorithm>
#include <array>
#include <cassert>
#include <cctype>
#include <cstddef>
#include <sstream>
#include <string>
Functions to compare server version strings and and determine if clone should be allowed.
◆ parse_version_string()
| static version_t parse_version_string |
( |
std::string |
version, |
|
|
bool & |
is_valid |
|
) |
| |
|
static |
Parse a version string and extract the major, minor, patch and build from the version.
A string of length 0 is filled in case a particular version string could not be parsed.
- Parameters
-
| [in] | version | input version string |
| [in,out] | is_valid | true if version string is valid |
- Returns
- parsed components of the version string.
◆ CLONE_BACKPORT_VERSION
| constexpr unsigned long CLONE_BACKPORT_VERSION = 37 |
|
constexpr |
◆ CLONE_TO_NEXT_LTS_SUPPORT
| const version_t CLONE_TO_NEXT_LTS_SUPPORT {9, 7, 0, ""} |