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

Method getCStringLength

runtime/3rdparty/jsoncpp/jsoncpp.cpp:3273–3282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3271
3272#if JSONCPP_USING_SECURE_MEMORY
3273unsigned Value::getCStringLength() const
3274{
3275 JSON_ASSERT_MESSAGE(type() == stringValue, "in Json::Value::asCString(): requires stringValue");
3276 if (value_.string_ == 0)
3277 return 0;
3278 unsigned this_len;
3279 char const *this_str;
3280 decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len, &this_str);
3281 return this_len;
3282}
3283#endif
3284
3285bool Value::getString(char const **begin, char const **end) const

Callers

nothing calls this directly

Calls 2

decodePrefixedStringFunction · 0.85
typeFunction · 0.50

Tested by

no test coverage detected