MCPcopy Create free account
hub / github.com/Alan-CRL/Inkeys / asCString

Method asCString

Timeout/InkeysTimeout/json/lib_json/json_value.cpp:589–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

typeEnum · 0.85
decodePrefixedStringFunction · 0.70

Tested by

no test coverage detected