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

Method toString

source/core/StarJson.cpp:220–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220String Json::toString() const {
221 if (type() != Type::String)
222 throw JsonException(strf("Cannot convert from {} to string", typeName()));
223 return *m_data.get<StringConstPtr>();
224}
225
226JsonArray Json::toArray() const {
227 if (type() != Type::Array)

Callers 5

getStringMethod · 0.45
optStringMethod · 0.45
queryStringMethod · 0.45
optQueryStringMethod · 0.45
StarJson.cppFile · 0.45

Calls 2

strfFunction · 0.85
typeFunction · 0.50

Tested by

no test coverage detected