MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / buildString

Method buildString

source/core/StarDirectives.cpp:185–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183
184
185String Directives::buildString() const {
186 if (m_shared) {
187 String built;
188 for (auto& entry : m_shared->entries) {
189 if (entry.begin > 0)
190 built += "?";
191 built += entry.string(*m_shared);
192 }
193
194 return built;
195 }
196
197 return String();
198}
199
200String& Directives::addToString(String& out) const {
201 if (!empty())

Callers

nothing calls this directly

Calls 2

StringClass · 0.85
stringMethod · 0.45

Tested by

no test coverage detected