MCPcopy Create free account
hub / github.com/SOUI2/soui / asCString

Method asCString

third-part/jsoncpp/src/lib_json/json_value.cpp:666–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664bool Value::operator!=(const Value& other) const { return !(*this == other); }
665
666const char* Value::asCString() const {
667 JSON_ASSERT_MESSAGE(type_ == stringValue,
668 "in Json::Value::asCString(): requires stringValue");
669 if (value_.string_ == 0) return 0;
670 unsigned this_len;
671 char const* this_str;
672 decodePrefixedString(this->allocated_, this->value_.string_, &this_len, &this_str);
673 return this_str;
674}
675
676#if JSONCPP_USING_SECURE_MEMORY
677unsigned Value::getCStringLength() const {

Callers 2

readObjectMethod · 0.80
JSONTEST_FIXTUREFunction · 0.80

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected