24 #include <boost/algorithm/string.hpp>
25 #include <boost/utility.hpp>
42 const string delim(
"/");
44 vector<string> urlElements{};
46 boost::split(urlElements, svnUrl, boost::is_any_of(delim));
49 for (
auto it = urlElements.begin(); it != urlElements.end(); ++it) {
51 if ((*it).find(
"trunk") != string::npos) {
57 if ((*it).find(
"tags") != string::npos) {
59 version = *(boost::prior(it)) +
" " + *(boost::next(it));
67 string getVersionString(
const unsigned short major,
const unsigned short minor,
const unsigned short patch) {
73 version += to_string(major);
75 version += to_string(minor);
79 version += to_string(patch);