From 427c329d41661aadfe6c95cf1ddeec92ebefcd66 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Thu, 2 May 2024 10:53:59 +0200 Subject: [PATCH] to_lower w/o boost --- Base/Util/StringUtil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Base/Util/StringUtil.cpp b/Base/Util/StringUtil.cpp index 58c718602c7..d0cff6441cc 100644 --- a/Base/Util/StringUtil.cpp +++ b/Base/Util/StringUtil.cpp @@ -15,6 +15,7 @@ #include "Base/Util/StringUtil.h" #include "Base/Util/Assert.h" #include <boost/algorithm/string.hpp> +#include <cctype> #include <cerrno> #include <charconv> @@ -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) { - boost::to_lower(text); + std::ranges::transform(text, text.begin(), [](unsigned char c) { return std::tolower(c); }); return text; } -- GitLab