MCPcopy Create free account
hub / github.com/SOUI2/soui / getString

Method getString

third-part/jsoncpp/src/lib_json/json_value.cpp:688–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686#endif
687
688bool Value::getString(char const** str, char const** cend) const {
689 if (type_ != stringValue) return false;
690 if (value_.string_ == 0) return false;
691 unsigned length;
692 decodePrefixedString(this->allocated_, this->value_.string_, &length, str);
693 *cend = *str + length;
694 return true;
695}
696
697JSONCPP_STRING Value::asString() const {
698 switch (type_) {

Callers 1

writeValueMethod · 0.45

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected