From 1d6b5b2a52443764c69f1936469f3f39321235b4 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 23 Feb 2017 17:49:37 +0100 Subject: [PATCH] Add StringUtils::CiComp operator --- components/misc/stringops.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/misc/stringops.hpp b/components/misc/stringops.hpp index 2723527f1..b14051a81 100644 --- a/components/misc/stringops.hpp +++ b/components/misc/stringops.hpp @@ -106,6 +106,14 @@ public: lowerCaseInPlace(out); return out; } + + struct CiComp + { + bool operator()(const std::string& left, const std::string& right) const + { + return ciLess(left, right); + } + }; }; }