MCPcopy Index your code
hub / github.com/Kitware/CMake / asCString

Method asCString

Utilities/cmjsoncpp/src/lib_json/json_value.cpp:590–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

588bool Value::operator!=(const Value& other) const { return !(*this == other); }
589
590const char* Value::asCString() const {
591 JSON_ASSERT_MESSAGE(type() == stringValue,
592 "in Json::Value::asCString(): requires stringValue");
593 if (value_.string_ == nullptr)
594 return nullptr;
595 unsigned this_len;
596 char const* this_str;
597 decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len,
598 &this_str);
599 return this_str;
600}
601
602#if JSONCPP_USING_SECURE_MEMORY
603unsigned Value::getCStringLength() const {

Callers 3

InstrumentCommandMethod · 0.80
BuildTraceEventMethod · 0.80

Calls 2

decodePrefixedStringFunction · 0.85
typeClass · 0.50

Tested by

no test coverage detected