diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-13 15:02:23 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-13 15:02:23 +0100 |
commit | 5f54ef36e27e13dd37e232eca74fd196f31e7807 (patch) | |
tree | d1595e4e29f8b60781a88543dc83fe8084e37161 /src/utils/stringutils.cpp | |
parent | f53a1cf0ff67b5bc11de5e28bb2d76070b019e0f (diff) | |
download | mana-5f54ef36e27e13dd37e232eca74fd196f31e7807.tar.gz mana-5f54ef36e27e13dd37e232eca74fd196f31e7807.tar.bz2 mana-5f54ef36e27e13dd37e232eca74fd196f31e7807.tar.xz mana-5f54ef36e27e13dd37e232eca74fd196f31e7807.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.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<std::string> &candidates, return newName; } + +std::string normalize(const std::string &name) +{ + std::string normalized = name; + return toLower(trim(normalized));; +} |