MCPcopy Create free account
hub / github.com/Kitware/VTK / getString

Method getString

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:3054–3064  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3052#endif
3053
3054bool Value::getString(char const** begin, char const** end) const {
3055 if (type() != stringValue)
3056 return false;
3057 if (value_.string_ == nullptr)
3058 return false;
3059 unsigned length;
3060 decodePrefixedString(this->isAllocated(), this->value_.string_, &length,
3061 begin);
3062 *end = *begin + length;
3063 return true;
3064}
3065
3066String Value::asString() const {
3067 switch (type()) {

Callers 1

writeValueMethod · 0.45

Calls 2

decodePrefixedStringFunction · 0.85
typeEnum · 0.50

Tested by

no test coverage detected