| 3773 | bool Value::isBool() const { return type_ == booleanValue; } |
| 3774 | |
| 3775 | bool Value::isInt() const { |
| 3776 | switch (type_) { |
| 3777 | case intValue: |
| 3778 | #if defined(JSON_HAS_INT64) |
| 3779 | return value_.int_ >= minInt && value_.int_ <= maxInt; |
| 3780 | #else |
| 3781 | return true; |
| 3782 | #endif |
| 3783 | case uintValue: |
| 3784 | return value_.uint_ <= UInt(maxInt); |
| 3785 | case realValue: |
| 3786 | return value_.real_ >= minInt && value_.real_ <= maxInt && |
| 3787 | IsIntegral(value_.real_); |
| 3788 | default: |
| 3789 | break; |
| 3790 | } |
| 3791 | return false; |
| 3792 | } |
| 3793 | |
| 3794 | bool Value::isUInt() const { |
| 3795 | switch (type_) { |
nothing calls this directly
no test coverage detected