Put utils::tolower definition in its own cpp file

This commit is contained in:
Florent Le Coz
2013-12-08 18:02:24 +01:00
parent fb01f78b0a
commit cb718def0c
3 changed files with 15 additions and 8 deletions
+13
View File
@@ -0,0 +1,13 @@
#include <utils/tolower.hpp>
namespace utils
{
std::string tolower(const std::string& original)
{
std::string res;
res.reserve(original.size());
for (const char c: original)
res += static_cast<char>(std::tolower(c));
return res;
}
}
+1 -8
View File
@@ -5,14 +5,7 @@
namespace utils
{
std::string tolower(const std::string& original)
{
std::string res;
res.reserve(original.size());
for (const char c: original)
res += static_cast<char>(std::tolower(c));
return res;
}
std::string tolower(const std::string& original);
}
#endif // SPLIT_INCLUDED