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

Function AppendStringWithArgsInPlace

src/strings.cpp:440–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440void AppendStringWithArgsInPlace(std::string &result, StringID string, std::span<StringParameter> params)
441{
442 StringParameters tmp_params{params};
443 StringBuilder builder(result);
444 GetStringWithArgs(builder, string, tmp_params);
445}
446
447/**
448 * Get a parsed string with most special stringcodes replaced by the string parameters.

Callers 4

MakeCargoListStringMethod · 0.85
OnRightClickMethod · 0.85
DrawRoadVehDetailsFunction · 0.85
ShowTooltipMethod · 0.85

Calls 1

GetStringWithArgsFunction · 0.85

Tested by

no test coverage detected