MCPcopy Create free account
hub / github.com/Samsung/UTopia / getCStringLength

Method getCStringLength

external/jsoncpp/jsoncpp.cpp:3001–3011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2999
3000#if JSONCPP_USING_SECURE_MEMORY
3001unsigned Value::getCStringLength() const {
3002 JSON_ASSERT_MESSAGE(type() == stringValue,
3003 "in Json::Value::asCString(): requires stringValue");
3004 if (value_.string_ == 0)
3005 return 0;
3006 unsigned this_len;
3007 char const *this_str;
3008 decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len,
3009 &this_str);
3010 return this_len;
3011}
3012#endif
3013
3014bool Value::getString(char const **begin, char const **end) const {

Callers

nothing calls this directly

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected