MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / getString

Method getString

src/share/jsoncpp/jsoncpp.cpp:3112–3119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3110#endif
3111
3112bool Value::getString(char const** str, char const** cend) const {
3113 if (type_ != stringValue) return false;
3114 if (value_.string_ == 0) return false;
3115 unsigned length;
3116 decodePrefixedString(this->allocated_, this->value_.string_, &length, str);
3117 *cend = *str + length;
3118 return true;
3119}
3120
3121JSONCPP_STRING Value::asString() const {
3122 switch (type_) {

Callers 1

writeValueMethod · 0.45

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected