MCPcopy Create free account
hub / github.com/Illumina/paragraph / getString

Method getString

external/jsoncpp/jsoncpp.cpp:3157–3164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3155#endif
3156
3157bool Value::getString(char const** str, char const** cend) const {
3158 if (type_ != stringValue) return false;
3159 if (value_.string_ == 0) return false;
3160 unsigned length;
3161 decodePrefixedString(this->allocated_, this->value_.string_, &length, str);
3162 *cend = *str + length;
3163 return true;
3164}
3165
3166JSONCPP_STRING Value::asString() const {
3167 switch (type_) {

Callers 1

writeValueMethod · 0.80

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected