diff options
author | 251 <13120787+251Labs@users.noreply.github.com> | 2018-07-25 11:45:07 +0200 |
---|---|---|
committer | 251 <13120787+251Labs@users.noreply.github.com> | 2018-08-28 18:42:53 +0200 |
commit | b193d5a443bfd994936ad21b807b2bb37756ef2c (patch) | |
tree | 08ee18569ba213308edcb7d7f64d52fc96f8c748 /src/rpc | |
parent | 7a208d9fade56e2347891daff2f6b903923c9d50 (diff) |
Removes the Boost case_conv.hpp dependency.
This commit removes the `boost/algorithm/string/case_conv.hpp` dependency from the project. It replaces the `boost::to_lower` and `boost::to_upper` functions with custom functions that are locale independent and ASCII deterministic.
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/server.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index e46bf2f765..7d7e83fea8 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -16,7 +16,6 @@ #include <boost/bind.hpp> #include <boost/signals2/signal.hpp> -#include <boost/algorithm/string/case_conv.hpp> // for to_upper() #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/split.hpp> @@ -192,9 +191,7 @@ std::string CRPCTable::help(const std::string& strCommand, const JSONRPCRequest& if (!category.empty()) strRet += "\n"; category = pcmd->category; - std::string firstLetter = category.substr(0,1); - boost::to_upper(firstLetter); - strRet += "== " + firstLetter + category.substr(1) + " ==\n"; + strRet += "== " + Capitalize(category) + " ==\n"; } } strRet += strHelp + "\n"; |