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

Method getCStringLength

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:3041–3051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3039
3040#if JSONCPP_USING_SECURE_MEMORY
3041unsigned Value::getCStringLength() const {
3042 JSON_ASSERT_MESSAGE(type() == stringValue,
3043 "in Json::Value::asCString(): requires stringValue");
3044 if (value_.string_ == 0)
3045 return 0;
3046 unsigned this_len;
3047 char const* this_str;
3048 decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len,
3049 &this_str);
3050 return this_len;
3051}
3052#endif
3053
3054bool Value::getString(char const** begin, char const** end) const {

Callers

nothing calls this directly

Calls 2

decodePrefixedStringFunction · 0.85
typeEnum · 0.50

Tested by

no test coverage detected