blob: 22d2b8f5b8bb8b6c58e48b0c67027f14599917d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef TOLOWER_INCLUDED
# define TOLOWER_INCLUDED
#include <string>
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;
}
}
#endif // SPLIT_INCLUDED
|