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

Method asCString

external/jsoncpp/jsoncpp.cpp:2988–2998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2986bool Value::operator!=(const Value &other) const { return !(*this == other); }
2987
2988const char *Value::asCString() const {
2989 JSON_ASSERT_MESSAGE(type() == stringValue,
2990 "in Json::Value::asCString(): requires stringValue");
2991 if (value_.string_ == nullptr)
2992 return nullptr;
2993 unsigned this_len;
2994 char const *this_str;
2995 decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len,
2996 &this_str);
2997 return this_str;
2998}
2999
3000#if JSONCPP_USING_SECURE_MEMORY
3001unsigned Value::getCStringLength() const {

Callers 1

readObjectMethod · 0.80

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected