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

Function GetString

src/strings.cpp:424–427  ·  view source on GitHub ↗

* Resolve the given StringID into a std::string with formatting but no parameters. * @param string The unique identifier of the translatable string. * @return The std::string of the translated string. */

Source from the content-addressed store, hash-verified

422 * @return The std::string of the translated string.
423 */
424std::string GetString(StringID string)
425{
426 return GetStringWithArgs(string, {});
427}
428
429/**
430 * Resolve the given StringID and append in place into an existing std::string with formatting but no parameters.

Callers 15

DrawWidgetMethod · 0.70
UpdateFilterStateMethod · 0.70
DrawSettingMethod · 0.70
DrawWidgetMethod · 0.70
OnResizeMethod · 0.70
OnInitMethod · 0.70
DrawWidgetMethod · 0.70
GetWidgetStringMethod · 0.70
UpdateWidgetSizeMethod · 0.70
UpdateSignEditWindowMethod · 0.70
GetWidgetStringMethod · 0.70
DrawWidgetMethod · 0.70

Calls 1

GetStringWithArgsFunction · 0.85

Tested by

no test coverage detected