From 186eb8dcc63052a167c61f29828a54902916c74d 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/utils/stringutils.cpp') diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index e69b03937..f2cbea050 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -357,4 +357,10 @@ void replaceSpecialChars(std::string &text) pos1 = text.find("&", pos1); } -} \ No newline at end of file +} + +std::string normalize(const std::string &name) +{ + std::string normalized = name; + return toLower(trim(normalized));; +} -- cgit v1.2.3-60-g2f50