MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / get

Method get

Sources/Dependencies/jsoncpp/value.cpp:636–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634
635#ifdef JSONCPP_HAS_STRING_VIEW
636 ErrorCode Value::get(std::string_view& view) const {
637 if (type() != stringValue)
638 return INCORRECT_TYPE;
639 if (value_.string_ == nullptr)
640 return UNINITIALIZED;
641 const char* begin;
642 unsigned length;
643 decodePrefixedString(this->isAllocated(), this->value_.string_, &length, &begin);
644 view = std::string_view(begin, length);
645 return SUCCESS;
646 }
647#endif
648
649 StringContainer Value::asString() const {

Callers 2

ToPtrMethod · 0.45
getCommentMethod · 0.45

Calls 6

typeClass · 0.85
decodePrefixedStringFunction · 0.85
InRangeFunction · 0.85
integerToDoubleFunction · 0.85
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected