| 533 | |
| 534 | |
| 535 | int |
| 536 | Value::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 | |
| 565 | bool |
| 566 | Value::operator <( const Value &other ) const |
no outgoing calls
no test coverage detected