MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / __strprintf

Function __strprintf

src/commons/tinyformat.h:1070–1079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1068 */
1069template<typename... Args>
1070inline std::string __strprintf(const char* fmt, const char* file, int line, const Args&... args) {
1071 std::ostringstream oss;
1072 try {
1073 tinyformat::format(oss, fmt, args...);
1074 } catch (tinyformat::format_error& fmterr) {
1075 throw tinyformat::format_error("[" + std::string(file) + ":" + std::to_string(line) + "] " +
1076 fmterr.what());
1077 }
1078 return oss.str();
1079}
1080
1081template<typename... Args>
1082inline std::string __strprintf(const std::string &fmt, const char* file, int line, const Args&... args) {

Callers

nothing calls this directly

Calls 4

formatFunction · 0.85
format_errorClass · 0.85
strMethod · 0.80
whatMethod · 0.45

Tested by

no test coverage detected