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

Function make_positional

test/printf-test.cc:24–28  ·  view source on GitHub ↗

Makes format string argument positional.

Source from the content-addressed store, hash-verified

22
23// Makes format string argument positional.
24static auto make_positional(fmt::string_view format) -> std::string {
25 std::string s(format.data(), format.size());
26 s.replace(s.find('%'), 1, "%1$");
27 return s;
28}
29
30// A wrapper around fmt::sprintf to workaround bogus warnings about invalid
31// format strings in MSVC.

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected