MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / getString

Method getString

Libraries/jsoncpp-0.y.z/src/lib_json/json_value.cpp:592–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592bool Value::getString(char const** str, char const** cend) const {
593 if (type_ != stringValue) return false;
594 if (value_.string_ == 0) return false;
595 unsigned length;
596 decodePrefixedString(this->allocated_, this->value_.string_, &length, str);
597 *cend = *str + length;
598 return true;
599}
600
601std::string Value::asString() const {
602 switch (type_) {

Callers 1

writeValueMethod · 0.45

Calls 1

decodePrefixedStringFunction · 0.70

Tested by

no test coverage detected