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

Function format_base2e

include/fmt/format.h:1293–1297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1291// Formats an unsigned integer in the power of two base (binary, octal, hex).
1292template <typename Char, typename UInt>
1293FMT_CONSTEXPR auto format_base2e(int base_bits, Char* out, UInt value,
1294 int num_digits, bool upper = false) -> Char* {
1295 do_format_base2e(base_bits, out, value, num_digits, upper);
1296 return out + num_digits;
1297}
1298
1299template <typename Char, typename OutputIt, typename UInt,
1300 FMT_ENABLE_IF(is_back_insert_iterator<OutputIt>::value)>

Callers 2

write_codepointFunction · 0.85
format_hexfloatMethod · 0.85

Calls 4

do_format_base2eFunction · 0.85
to_unsignedFunction · 0.85
is_constant_evaluatedFunction · 0.85
fill_nFunction · 0.85

Tested by

no test coverage detected