MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / operator==

Method operator==

src/jsoncpp.cpp:2711–2720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2709}
2710
2711bool Value::CZString::operator==(const CZString& other) const {
2712 if (!cstr_) return index_ == other.index_;
2713 //return strcmp(cstr_, other.cstr_) == 0;
2714 // Assume both are strings.
2715 unsigned this_len = this->storage_.length_;
2716 unsigned other_len = other.storage_.length_;
2717 if (this_len != other_len) return false;
2718 int comp = memcmp(this->cstr_, other.cstr_, this_len);
2719 return comp == 0;
2720}
2721
2722ArrayIndex Value::CZString::index() const { return index_; }
2723

Callers

nothing calls this directly

Calls 2

decodePrefixedStringFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected