MCPcopy Create free account
hub / github.com/Illumina/paragraph / compare

Method compare

external/jsoncpp/jsoncpp.cpp:3027–3033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3025ValueType Value::type() const { return type_; }
3026
3027int Value::compare(const Value& other) const {
3028 if (*this < other)
3029 return -1;
3030 if (*this > other)
3031 return 1;
3032 return 0;
3033}
3034
3035bool Value::operator<(const Value& other) const {
3036 int typeDelta = type_ - other.type_;

Callers 3

test_multiparagraphMethod · 0.80
mainFunction · 0.80
loadManifestFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_multiparagraphMethod · 0.64