MCPcopy Create free account
hub / github.com/cuberite/cuberite / compare

Method compare

lib/jsoncpp/src/lib_json/json_value.cpp:535–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533
534
535int
536Value::compare( const Value &other )
537{
538 /*
539 int typeDelta = other.type_ - type_;
540 switch ( type_ )
541 {
542 case nullValue:
543
544 return other.type_ == type_;
545 case intValue:
546 if ( other.type_.isNumeric()
547 case uintValue:
548 case realValue:
549 case booleanValue:
550 break;
551 case stringValue,
552 break;
553 case arrayValue:
554 delete value_.array_;
555 break;
556 case objectValue:
557 delete value_.map_;
558 default:
559 JSON_ASSERT_UNREACHABLE;
560 }
561 */
562 return 0; // unreachable
563}
564
565bool
566Value::operator <( const Value &other ) const

Callers 15

operator <Method · 0.80
operator ==Method · 0.80
BlockStringToTypeFunction · 0.80
ParseItemMethod · 0.80
AuthFromAddressMethod · 0.80
StringToBiomeFunction · 0.80
AssignAttributesMethod · 0.80
ExecuteConsoleCommandMethod · 0.80
LoadWorldsMethod · 0.80
NoCaseCompareFunction · 0.80
GetTabNameForRequestMethod · 0.80
HandleWebRequestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected