summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-13 15:02:23 +0100
committerAndrei Karas <akaras@inbox.ru>2011-01-13 16:53:29 +0200
commit186eb8dcc63052a167c61f29828a54902916c74d (patch)
tree8eb97be1bd969ade487d541a721250c22b4c558f /src/utils/stringutils.cpp
parent6c885855b0c06bd7c4b6ab3574d8e2f3398ad97a (diff)
downloadplus-186eb8dcc63052a167c61f29828a54902916c74d.tar.gz
plus-186eb8dcc63052a167c61f29828a54902916c74d.tar.bz2
plus-186eb8dcc63052a167c61f29828a54902916c74d.tar.xz
plus-186eb8dcc63052a167c61f29828a54902916c74d.zip
Moved the normalize() function in strungUtils where it belongs.
(Preparation for bringing a smaller item loading refactoring patch.) Trivial.
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r--src/utils/stringutils.cpp8
1 files changed, 7 insertions, 1 deletions
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));;
+}