MCPcopy Create free account
hub / github.com/Samsung/ONE / operator==

Method operator==

runtime/3rdparty/jsoncpp/jsoncpp.cpp:2962–2975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2960}
2961
2962bool Value::CZString::operator==(const CZString &other) const
2963{
2964 if (!cstr_)
2965 return index_ == other.index_;
2966 // return strcmp(cstr_, other.cstr_) == 0;
2967 // Assume both are strings.
2968 unsigned this_len = this->storage_.length_;
2969 unsigned other_len = other.storage_.length_;
2970 if (this_len != other_len)
2971 return false;
2972 JSON_ASSERT(this->cstr_ && other.cstr_);
2973 int comp = memcmp(this->cstr_, other.cstr_, this_len);
2974 return comp == 0;
2975}
2976
2977ArrayIndex Value::CZString::index() const { return index_; }
2978

Callers

nothing calls this directly

Calls 4

decodePrefixedStringFunction · 0.85
typeFunction · 0.50
typeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected