#pragma once #ifndef PP_DEBUG #include #include #endif inline void toLower(std::string &str) { std::transform(str.begin(), str.end(), str.begin(), [](unsigned char c){ return std::tolower(c); }); } inline void toUpper(std::string &str) { std::transform(str.begin(), str.end(), str.begin(), [](unsigned char c){ return std::toupper(c); }); } inline bool isInt(const std::string &str) { return str.find_first_not_of("1234567890") == std::string::npos; }