MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / FormatZerofillNumber

Function FormatZerofillNumber

src/strings.cpp:522–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522static void FormatZerofillNumber(StringBuilder &builder, int64_t number, int count)
523{
524 fmt::format_to(builder.back_inserter(), "{:0{}d}", number, count);
525}
526
527static void FormatHexNumber(StringBuilder &builder, uint64_t number)
528{

Callers 1

FormatStringFunction · 0.85

Calls 2

format_toFunction · 0.50
back_inserterMethod · 0.45

Tested by

no test coverage detected