Skip to content
Snippets Groups Projects
Commit 427c329d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

to_lower w/o boost

parent 4f569df6
No related branches found
No related tags found
1 merge request!2534rm some uses of Boost
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include "Base/Util/StringUtil.h" #include "Base/Util/StringUtil.h"
#include "Base/Util/Assert.h" #include "Base/Util/Assert.h"
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <cctype>
#include <cerrno> #include <cerrno>
#include <charconv> #include <charconv>
...@@ -49,7 +50,7 @@ std::string Base::String::join(const std::vector<std::string>& joinable, const s ...@@ -49,7 +50,7 @@ std::string Base::String::join(const std::vector<std::string>& joinable, const s
std::string Base::String::to_lower(std::string text) std::string Base::String::to_lower(std::string text)
{ {
boost::to_lower(text); std::ranges::transform(text, text.begin(), [](unsigned char c) { return std::tolower(c); });
return text; return text;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment