addi 445071cad5 Fix various compiler warnings on MSVC
I tried to avoid casts whereever it was possible, but for some cases it wasn't.
2016-06-18 11:45:02 +02:00

17 lines
244 B
C++

#ifndef _UTIL_H_
#define _UTIL_H_
#include<cstring>
inline std::string strlower(const std::string &s)
{
size_t l = s.length();
std::string sl = s;
for (size_t i = 0; i < l; i++)
sl[i] = tolower(sl[i]);
return sl;
}
#endif // _UTIL_H_