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

Method getString

external/jsoncpp/jsoncpp.cpp:3014–3024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3012#endif
3013
3014bool Value::getString(char const **begin, char const **end) const {
3015 if (type() != stringValue)
3016 return false;
3017 if (value_.string_ == nullptr)
3018 return false;
3019 unsigned length;
3020 decodePrefixedString(this->isAllocated(), this->value_.string_, &length,
3021 begin);
3022 *end = *begin + length;
3023 return true;
3024}
3025
3026String Value::asString() const {
3027 switch (type()) {

Callers 1

writeValueMethod · 0.80

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected