X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Futil.cpp;fp=src%2Futil.cpp;h=79de9db5625303b7f2828ca7cd176d9851fcbc2a;hp=465b5dd20dae93fc60a582ed407a7605cbcba488;hb=60cf27d9500deb3bc80ffa8ce5dc3e8284a4c658;hpb=3fa5baa680a6c95f62454e421b02f91247164d9d diff --git a/src/util.cpp b/src/util.cpp index 465b5dd..79de9db 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -8,9 +8,6 @@ #include "sync.h" #include "version.h" -#include -#include // for to_lower() -#include // for startswith() and endswith() #include #include #include @@ -502,8 +499,8 @@ void ParseParameters(int argc, const char* const argv[]) str = str.substr(0, is_index); } #ifdef WIN32 - boost::to_lower(str); - if (boost::algorithm::starts_with(str, "/")) + std::transform(str.begin(), str.end(), str.begin(), ::tolower); + if (str.compare(0,1, "/") == 0) str = "-" + str.substr(1); #endif if (str[0] != '-') @@ -1389,7 +1386,16 @@ std::string FormatSubVersion(const std::string& name, int nClientVersion, const ss << "/"; ss << name << ":" << FormatVersion(nClientVersion); if (!comments.empty()) - ss << "(" << boost::algorithm::join(comments, "; ") << ")"; + { + ss << "("; + for (const auto& st : comments) + { + ss << st; + if (st == comments.back()) break; + ss << "; "; + } + ss << ")"; + } ss << "/"; return ss.str(); }