minetest-mapper-cpp/util.h

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_