Sha256: 2ff718082529ce00c6afb4b91a41e1b645c4f80671b17b8e50f91e30af6ca64e
Contents?: true
Size: 609 Bytes
Versions: 16
Compression:
Stored size: 609 Bytes
Contents
#include <internal/facts/linux/kernel_resolver.hpp> #include <leatherman/util/regex.hpp> #include <boost/regex.hpp> #include <tuple> using namespace std; using namespace leatherman::util; namespace facter { namespace facts { namespace linux { tuple<string, string> kernel_resolver::parse_version(string const& version) const { string major, minor; if (re_search(version, boost::regex("(\\d+\\.\\d+)(.*)"), &major, &minor)) { return make_tuple(major, minor); } return make_tuple(move(version), string()); } }}} // namespace facter::facts::resolvers
Version data entries
16 entries across 16 versions & 2 rubygems