3 #include "boost/algorithm/string.hpp" 4 #include "boost/lexical_cast.hpp" 12 namespace releaseversion {
23 : irregular_(
true), major_(0), minor_(0) {
25 std::vector<std::string>
parts;
26 parts.reserve(releaseVersion.size());
28 parts.erase(remove_if(parts.begin(), parts.end(),
IsEmpty()), parts.end());
30 if (parts.size() < 3) {
44 major_ = boost::lexical_cast<
unsigned int>(parts[0]);
45 minor_ = boost::lexical_cast<
unsigned int>(parts[1]);
bool operator()(std::string const &s) const
bool isEarlierRelease(std::string const &a, std::string const &b)
bool operator<(DecomposedReleaseVersion const &other) const
bool operator()(char const c) const
DecomposedReleaseVersion(std::string releaseVersion)