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

Function FormatMonthAndYear

src/strings.cpp:573–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573static void FormatMonthAndYear(StringBuilder &builder, TimerGameCalendar::Date date, uint case_index)
574{
575 TimerGameCalendar::YearMonthDay ymd = TimerGameCalendar::ConvertDateToYMD(date);
576
577 auto tmp_params = MakeParameters(STR_MONTH_JAN + ymd.month, ymd.year);
578 FormatString(builder, GetStringPtr(STR_FORMAT_DATE_SHORT), tmp_params, case_index);
579}
580
581static void FormatTinyOrISODate(StringBuilder &builder, TimerGameCalendar::Date date, StringID str)
582{

Callers 1

FormatStringFunction · 0.85

Calls 3

MakeParametersFunction · 0.85
FormatStringFunction · 0.85
GetStringPtrFunction · 0.85

Tested by

no test coverage detected