From 4653a46e8208436baa7fea871c3948b1186bcd2c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 22 Aug 2023 19:50:28 +0100 Subject: Add a copying to_lower wrapper --- slicer/slicer/hookMap.cpp | 6 ++++++ slicer/slicer/hookMap.h | 1 + 2 files changed, 7 insertions(+) diff --git a/slicer/slicer/hookMap.cpp b/slicer/slicer/hookMap.cpp index 3192d6c..c32db2d 100644 --- a/slicer/slicer/hookMap.cpp +++ b/slicer/slicer/hookMap.cpp @@ -7,4 +7,10 @@ namespace Slicer { { boost::algorithm::to_lower(s); } + + std::string + to_lower_copy(const std::string & s) + { + return boost::algorithm::to_lower_copy(s); + } } diff --git a/slicer/slicer/hookMap.h b/slicer/slicer/hookMap.h index daef5b0..3328ddd 100644 --- a/slicer/slicer/hookMap.h +++ b/slicer/slicer/hookMap.h @@ -11,6 +11,7 @@ namespace Slicer { void DLL_PUBLIC to_lower(std::string & s); + [[nodiscard]] std::string DLL_PUBLIC to_lower_copy(const std::string & s); template class ModelPartForComplex; // IWYU pragma: keep -- cgit v1.2.3