MCPcopy Create free account
hub / github.com/Kitware/CMake / getCStringLength

Method getCStringLength

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

Source from the content-addressed store, hash-verified

601
602#if JSONCPP_USING_SECURE_MEMORY
603unsigned Value::getCStringLength() const {
604 JSON_ASSERT_MESSAGE(type() == stringValue,
605 "in Json::Value::asCString(): requires stringValue");
606 if (value_.string_ == 0)
607 return 0;
608 unsigned this_len;
609 char const* this_str;
610 decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len,
611 &this_str);
612 return this_len;
613}
614#endif
615
616bool Value::getString(char const** begin, char const** end) const {

Callers

nothing calls this directly

Calls 2

decodePrefixedStringFunction · 0.85
typeClass · 0.50

Tested by

no test coverage detected