MCPcopy Create free account
hub / github.com/Kitware/VTK / asCString

Method asCString

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:3028–3038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3026bool Value::operator!=(const Value& other) const { return !(*this == other); }
3027
3028const char* Value::asCString() const {
3029 JSON_ASSERT_MESSAGE(type() == stringValue,
3030 "in Json::Value::asCString(): requires stringValue");
3031 if (value_.string_ == nullptr)
3032 return nullptr;
3033 unsigned this_len;
3034 char const* this_str;
3035 decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len,
3036 &this_str);
3037 return this_str;
3038}
3039
3040#if JSONCPP_USING_SECURE_MEMORY
3041unsigned Value::getCStringLength() const {

Callers

nothing calls this directly

Calls 2

decodePrefixedStringFunction · 0.85
typeEnum · 0.50

Tested by

no test coverage detected