#ifndef _UTIL_H_ #define _UTIL_H_ #include 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_