common_util
Loading...
Searching...
No Matches
verutil.h
Go to the documentation of this file.
1
19#pragma once
20
21#include <string>
22
23namespace cutl
24{
25
32 bool is_version(const std::string &text);
39 std::string get_version(const std::string &text);
47 int compare_version(const std::string &v1, const std::string &v2);
48
49} // namespace cutl
int compare_version(const std::string &v1, const std::string &v2)
Compare two version strings.
bool is_version(const std::string &text)
Check if a string is a valid version.
std::string get_version(const std::string &text)
Parse a version string from a text.