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

Function FormatTinyOrISODate

src/strings.cpp:581–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579}
580
581static void FormatTinyOrISODate(StringBuilder &builder, TimerGameCalendar::Date date, StringID str)
582{
583 TimerGameCalendar::YearMonthDay ymd = TimerGameCalendar::ConvertDateToYMD(date);
584
585 /* Day and month are zero-padded with ZEROFILL_NUM, hence the two 2s. */
586 auto tmp_params = MakeParameters(ymd.day, 2, ymd.month + 1, 2, ymd.year);
587 FormatString(builder, GetStringPtr(str), tmp_params);
588}
589
590static void FormatGenericCurrency(StringBuilder &builder, const CurrencySpec *spec, Money number, bool compact)
591{

Callers 1

FormatStringFunction · 0.85

Calls 3

MakeParametersFunction · 0.85
FormatStringFunction · 0.85
GetStringPtrFunction · 0.85

Tested by

no test coverage detected