MCPcopy Index your code
hub / github.com/Kitware/CMake / getString

Method getString

Utilities/cmjsoncpp/src/lib_json/json_value.cpp:616–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614#endif
615
616bool Value::getString(char const** begin, char const** end) const {
617 if (type() != stringValue)
618 return false;
619 if (value_.string_ == nullptr)
620 return false;
621 unsigned length;
622 decodePrefixedString(this->isAllocated(), this->value_.string_, &length,
623 begin);
624 *end = *begin + length;
625 return true;
626}
627
628String Value::asString() const {
629 switch (type()) {

Callers 1

writeValueMethod · 0.80

Calls 2

decodePrefixedStringFunction · 0.85
typeClass · 0.50

Tested by

no test coverage detected