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

Method getString

src/jsoncpp.cpp:3053–3060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

writeValueMethod · 0.80

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected