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

Method getString

Sources/Dependencies/jsoncpp/value.cpp:624–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622#endif
623
624 bool Value::getString(char const** begin, char const** end) const {
625 if (type() != stringValue)
626 return false;
627 if (value_.string_ == nullptr)
628 return false;
629 unsigned length;
630 decodePrefixedString(this->isAllocated(), this->value_.string_, &length, begin);
631 *end = *begin + length;
632 return true;
633 }
634
635#ifdef JSONCPP_HAS_STRING_VIEW
636 ErrorCode Value::get(std::string_view& view) const {

Callers 1

writeValueMethod · 0.80

Calls 2

typeClass · 0.85
decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected