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

Method appendValue

src/OpenLoco/src/CommandLine.cpp:98–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97
98 void appendValue(std::string_view arg, std::string_view value)
99 {
100 for (auto& r : _values)
101 {
102 if (std::get<0>(r) == arg)
103 {
104 auto& v = std::get<1>(r);
105 v.push_back(value);
106 return;
107 }
108 }
109 _values.emplace_back(arg, std::vector<std::string_view>{ value });
110 }
111
112 bool appendValues(std::string_view arg, size_t count, size_t& i)
113 {

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected