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

Function GetEncodedString

src/strings.cpp:90–93  ·  view source on GitHub ↗

* Encode a string with no parameters into an encoded string. * @param str The StringID to format. * @returns The encoded string. */

Source from the content-addressed store, hash-verified

88 * @returns The encoded string.
89 */
90EncodedString GetEncodedString(StringID str)
91{
92 return GetEncodedStringWithArgs(str, {});
93}
94
95/**
96 * Encode a string with its parameters into an encoded string.

Callers 15

BuildReplacementVehicleFunction · 0.70
OnClickMethod · 0.70
AskExitGameFunction · 0.70
AskExitToGameMenuFunction · 0.70
OnClickMethod · 0.70
OnClickMethod · 0.70
OnTimeoutMethod · 0.70
ParseValueMethod · 0.70
GraphicsSetLoadConfigFunction · 0.70
GRFLoadConfigFunction · 0.70
OnTooltipMethod · 0.70

Calls 1

GetEncodedStringWithArgsFunction · 0.85

Tested by

no test coverage detected