MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / readString

Method readString

CesiumJsonReader/src/JsonObjectJsonHandler.cpp:70–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70IJsonHandler* JsonObjectJsonHandler::readString(const std::string_view& str) {
71 CesiumUtility::JsonValue& current = *this->_stack.back();
72 CesiumUtility::JsonValue::Array* pArray =
73 std::get_if<CesiumUtility::JsonValue::Array>(&current.value);
74 if (pArray) {
75 pArray->emplace_back(std::string(str));
76 } else {
77 current = std::string(str);
78 }
79
80 return this->doneElement();
81}
82
83IJsonHandler* JsonObjectJsonHandler::readObjectStart() {
84 CesiumUtility::JsonValue& current = *this->_stack.back();

Callers

nothing calls this directly

Calls 2

doneElementMethod · 0.95
backMethod · 0.80

Tested by

no test coverage detected