MCPcopy Create free account
hub / github.com/Illumina/paragraph / asCString

Method asCString

external/jsoncpp/jsoncpp.cpp:3135–3143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3133bool Value::operator!=(const Value& other) const { return !(*this == other); }
3134
3135const char* Value::asCString() const {
3136 JSON_ASSERT_MESSAGE(type_ == stringValue,
3137 "in Json::Value::asCString(): requires stringValue");
3138 if (value_.string_ == 0) return 0;
3139 unsigned this_len;
3140 char const* this_str;
3141 decodePrefixedString(this->allocated_, this->value_.string_, &this_len, &this_str);
3142 return this_str;
3143}
3144
3145#if JSONCPP_USING_SECURE_MEMORY
3146unsigned Value::getCStringLength() const {

Callers 1

readObjectMethod · 0.80

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected