MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / getString

Method getString

vrclient_x64/jsoncpp.cpp:3052–3059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3050}
3051
3052bool Value::getString(char const** str, char const** cend) const {
3053 if (type_ != stringValue) return false;
3054 if (value_.string_ == 0) return false;
3055 unsigned length;
3056 decodePrefixedString(this->allocated_, this->value_.string_, &length, str);
3057 *cend = *str + length;
3058 return true;
3059}
3060
3061std::string Value::asString() const {
3062 switch (type_) {

Callers 1

writeValueMethod · 0.80

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected