MCPcopy Create free account
hub / github.com/fmtlib/fmt / vsprintf

Function vsprintf

include/fmt/printf.h:582–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580
581template <typename Char>
582inline auto vsprintf(basic_string_view<Char> fmt,
583 typename vprintf_args<Char>::type args)
584 -> std::basic_string<Char> {
585 auto buf = basic_memory_buffer<Char>();
586 detail::vprintf(buf, fmt, args);
587 return {buf.data(), buf.size()};
588}
589
590/**
591 * Formats `args` according to specifications in `fmt` and returns the result

Callers 2

TESTFunction · 0.85
sprintfFunction · 0.85

Calls 3

vprintfFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68