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

Method prefix

source/core/StarDirectives.cpp:159–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159StringView Directives::prefix() const {
160 if (!m_shared)
161 return "";
162 else if (m_shared->empty())
163 return m_shared->string;
164 else if (m_shared->string.utf8().at(0) == '?')
165 return "";
166 else
167 return m_shared->entries.front().string(*m_shared);
168}
169
170String Directives::string() const {
171 if (!m_shared)

Callers 2

renderMethod · 0.80
renderPortraitMethod · 0.80

Calls 3

emptyMethod · 0.45
atMethod · 0.45
stringMethod · 0.45

Tested by

no test coverage detected