MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / getString

Method getString

edrav2/eprj/jsoncpp/src/lib_json/json_value.cpp:671–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669#endif
670
671bool Value::getString(char const** begin, char const** end) const {
672 if (type_ != stringValue)
673 return false;
674 if (value_.string_ == nullptr)
675 return false;
676 unsigned length;
677 decodePrefixedString(this->allocated_, this->value_.string_, &length, begin);
678 *end = *begin + length;
679 return true;
680}
681
682JSONCPP_STRING Value::asString() const {
683 switch (type_) {

Callers 1

writeValueMethod · 0.45

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected