| 156 | } |
| 157 | |
| 158 | std::string StrFormat(const char* format, ...) { |
| 159 | va_list args; |
| 160 | va_start(args, format); |
| 161 | std::string tmp = StrFormatImp(format, args); |
| 162 | va_end(args); |
| 163 | return tmp; |
| 164 | } |
| 165 | |
| 166 | std::vector<std::string> StrSplit(const std::string& str, char delim) { |
| 167 | if (str.empty()) return {}; |