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

Method addToString

source/core/StarDirectives.cpp:340–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340void DirectivesGroup::addToString(String& string) const {
341 for (auto& entry : m_directives) {
342 if (entry && !entry->string.empty()) {
343 if (!string.empty() && string.utf8().back() != '?' && entry->string.utf8()[0] != '?')
344 string.append('?');
345 string += entry->string;
346 }
347 }
348}
349
350void DirectivesGroup::forEach(DirectivesCallback callback) const {
351 for (auto& directives : m_directives) {

Callers 1

drawableFrameMethod · 0.80

Calls 3

emptyMethod · 0.45
backMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected