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

Function write2digits_i

include/fmt/format.h:1216–1223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1214
1215template <typename Char>
1216FMT_INLINE void write2digits_i(Char* out, size_t value) {
1217 if (std::is_same<Char, char>::value && !FMT_OPTIMIZE_SIZE) {
1218 memcpy(out, digits2_i(value), 2);
1219 return;
1220 }
1221 *out++ = static_cast<Char>(digits2_i(value)[0]);
1222 *out = static_cast<Char>(digits2_i(value)[1]);
1223}
1224
1225// Formats a decimal unsigned integer value writing to out pointing to a buffer
1226// of specified size. The caller must ensure that the buffer is large enough.

Callers 1

do_format_decimalFunction · 0.85

Calls 1

digits2_iFunction · 0.85

Tested by

no test coverage detected