MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / setString

Function setString

src/OpenLoco/src/Localisation/StringManager.cpp:64–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 void setString(StringId id, std::string_view value)
65 {
66 auto* dst = _strings[id];
67 std::memcpy(dst, value.data(), value.size());
68 dst[value.size()] = '\0';
69 }
70
71 const char* swapString(StringId id, const char* src)
72 {

Callers 2

showMultiplayerFunction · 0.85
prepareDrawFunction · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected