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

Function FormatYmdString

src/strings.cpp:565–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565static void FormatYmdString(StringBuilder &builder, TimerGameCalendar::Date date, uint case_index)
566{
567 TimerGameCalendar::YearMonthDay ymd = TimerGameCalendar::ConvertDateToYMD(date);
568
569 auto tmp_params = MakeParameters(STR_DAY_NUMBER_1ST + ymd.day - 1, STR_MONTH_ABBREV_JAN + ymd.month, ymd.year);
570 FormatString(builder, GetStringPtr(STR_FORMAT_DATE_LONG), tmp_params, case_index);
571}
572
573static void FormatMonthAndYear(StringBuilder &builder, TimerGameCalendar::Date date, uint case_index)
574{

Callers 1

FormatStringFunction · 0.85

Calls 3

MakeParametersFunction · 0.85
FormatStringFunction · 0.85
GetStringPtrFunction · 0.85

Tested by

no test coverage detected