| 3725 | bool Value::isBool() const { return type_ == booleanValue; } |
| 3726 | |
| 3727 | bool Value::isInt() const { |
| 3728 | switch (type_) { |
| 3729 | case intValue: |
| 3730 | #if defined(JSON_HAS_INT64) |
| 3731 | return value_.int_ >= minInt && value_.int_ <= maxInt; |
| 3732 | #else |
| 3733 | return true; |
| 3734 | #endif |
| 3735 | case uintValue: |
| 3736 | return value_.uint_ <= UInt(maxInt); |
| 3737 | case realValue: |
| 3738 | return value_.real_ >= minInt && value_.real_ <= maxInt && |
| 3739 | IsIntegral(value_.real_); |
| 3740 | default: |
| 3741 | break; |
| 3742 | } |
| 3743 | return false; |
| 3744 | } |
| 3745 | |
| 3746 | bool Value::isUInt() const { |
| 3747 | switch (type_) { |
no test coverage detected