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

Method getString

runtime/3rdparty/jsoncpp/jsoncpp.cpp:3285–3295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3283#endif
3284
3285bool Value::getString(char const **begin, char const **end) const
3286{
3287 if (type() != stringValue)
3288 return false;
3289 if (value_.string_ == nullptr)
3290 return false;
3291 unsigned length;
3292 decodePrefixedString(this->isAllocated(), this->value_.string_, &length, begin);
3293 *end = *begin + length;
3294 return true;
3295}
3296
3297String Value::asString() const
3298{

Callers 1

writeValueMethod · 0.80

Calls 2

decodePrefixedStringFunction · 0.85
typeFunction · 0.50

Tested by

no test coverage detected