| 3794 | bool Value::isBool() const { return type_ == booleanValue; } |
| 3795 | |
| 3796 | bool Value::isInt() const { |
| 3797 | switch (type_) { |
| 3798 | case intValue: |
| 3799 | #if defined(JSON_HAS_INT64) |
| 3800 | return value_.int_ >= minInt && value_.int_ <= maxInt; |
| 3801 | #else |
| 3802 | return true; |
| 3803 | #endif |
| 3804 | case uintValue: |
| 3805 | return value_.uint_ <= UInt(maxInt); |
| 3806 | case realValue: |
| 3807 | return value_.real_ >= minInt && value_.real_ <= maxInt && |
| 3808 | IsIntegral(value_.real_); |
| 3809 | default: |
| 3810 | break; |
| 3811 | } |
| 3812 | return false; |
| 3813 | } |
| 3814 | |
| 3815 | bool Value::isUInt() const { |
| 3816 | switch (type_) { |
nothing calls this directly
no test coverage detected