| 1097 | } |
| 1098 | |
| 1099 | inline std::string string_format(const char* pFmt, ...) |
| 1100 | { |
| 1101 | char buf[2048]; |
| 1102 | |
| 1103 | va_list args; |
| 1104 | va_start(args, pFmt); |
| 1105 | #ifdef _WIN32 |
| 1106 | vsprintf_s(buf, sizeof(buf), pFmt, args); |
| 1107 | #else |
| 1108 | vsnprintf(buf, sizeof(buf), pFmt, args); |
| 1109 | #endif |
| 1110 | va_end(args); |
| 1111 | |
| 1112 | return std::string(buf); |
| 1113 | } |
| 1114 | |
| 1115 | inline std::string string_tolower(const std::string& s) |
| 1116 | { |
no outgoing calls
no test coverage detected