MCPcopy Create free account
hub / github.com/Artikash/Textractor / FormatString

Function FormatString

include/common.h:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105#pragma warning(disable: 4996)
106template <typename... Args>
107inline std::string FormatString(const char* format, const Args&... args)
108{
109 std::string buffer(snprintf(nullptr, 0, format, FormatArg(args)...), '\0');
110 sprintf(buffer.data(), format, FormatArg(args)...);
111 return buffer;
112}
113
114template <typename... Args>
115inline std::wstring FormatString(const wchar_t* format, const Args&... args)

Callers 15

HexStringFunction · 0.85
PushMethod · 0.85
TranslateFunction · 0.85
TranslateFunction · 0.85
StartFunction · 0.85
SendRequestFunction · 0.85
TranslateFunction · 0.85
EscapeFunction · 0.85
CacheFileFunction · 0.85
TranslateFunction · 0.85
TranslateFunction · 0.85
TranslateFunction · 0.85

Calls 1

FormatArgFunction · 0.85

Tested by

no test coverage detected