MCPcopy Create free account
hub / github.com/Samsung/ONE / asCString

Method asCString

runtime/3rdparty/jsoncpp/jsoncpp.cpp:3261–3270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3259bool Value::operator!=(const Value &other) const { return !(*this == other); }
3260
3261const char *Value::asCString() const
3262{
3263 JSON_ASSERT_MESSAGE(type() == stringValue, "in Json::Value::asCString(): requires stringValue");
3264 if (value_.string_ == nullptr)
3265 return nullptr;
3266 unsigned this_len;
3267 char const *this_str;
3268 decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len, &this_str);
3269 return this_str;
3270}
3271
3272#if JSONCPP_USING_SECURE_MEMORY
3273unsigned Value::getCStringLength() const

Callers

nothing calls this directly

Calls 2

decodePrefixedStringFunction · 0.85
typeFunction · 0.50

Tested by

no test coverage detected