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

Function write_char

include/fmt/format.h:1882–1890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1880
1881template <typename Char, typename OutputIt>
1882FMT_CONSTEXPR auto write_char(OutputIt out, Char value,
1883 const format_specs& specs) -> OutputIt {
1884 bool is_debug = specs.type() == presentation_type::debug;
1885 return write_padded<Char>(out, specs, 1, [=](reserve_iterator<OutputIt> it) {
1886 if (is_debug) return write_escaped_char(it, value);
1887 *it++ = value;
1888 return it;
1889 });
1890}
1891
1892template <typename Char> class digit_grouping {
1893 private:

Callers

nothing calls this directly

Calls 2

write_escaped_charFunction · 0.85
typeMethod · 0.45

Tested by

no test coverage detected