From 5f54ef36e27e13dd37e232eca74fd196f31e7807 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 13 Jan 2011 15:02:23 +0100 Subject: Moved the normalize() function in strungUtils where it belongs. (Preparation for bringing a smaller item loading refactoring patch.) Trivial. --- src/utils/stringutils.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/utils/stringutils.cpp') diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index ca03791f..96b67370 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -223,3 +223,9 @@ std::string autocomplete(std::vector &candidates, return newName; } + +std::string normalize(const std::string &name) +{ + std::string normalized = name; + return toLower(trim(normalized));; +} -- cgit v1.2.3-70-g09d2