MCPcopy Create free account
hub / github.com/Kitware/VTK / operator==

Method operator==

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:2750–2762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2748}
2749
2750bool Value::CZString::operator==(const CZString& other) const {
2751 if (!cstr_)
2752 return index_ == other.index_;
2753 // return strcmp(cstr_, other.cstr_) == 0;
2754 // Assume both are strings.
2755 unsigned this_len = this->storage_.length_;
2756 unsigned other_len = other.storage_.length_;
2757 if (this_len != other_len)
2758 return false;
2759 JSON_ASSERT(this->cstr_ && other.cstr_);
2760 int comp = memcmp(this->cstr_, other.cstr_, this_len);
2761 return comp == 0;
2762}
2763
2764ArrayIndex Value::CZString::index() const { return index_; }
2765

Callers

nothing calls this directly

Calls 4

decodePrefixedStringFunction · 0.85
typeEnum · 0.50
typeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected