| 3697 | bool Value::isBool() const { return type() == booleanValue; } |
| 3698 | |
| 3699 | bool Value::isInt() const { |
| 3700 | switch (type()) { |
| 3701 | case intValue: |
| 3702 | #if defined(JSON_HAS_INT64) |
| 3703 | return value_.int_ >= minInt && value_.int_ <= maxInt; |
| 3704 | #else |
| 3705 | return true; |
| 3706 | #endif |
| 3707 | case uintValue: |
| 3708 | return value_.uint_ <= UInt(maxInt); |
| 3709 | case realValue: |
| 3710 | return value_.real_ >= minInt && value_.real_ <= maxInt && |
| 3711 | IsIntegral(value_.real_); |
| 3712 | default: |
| 3713 | break; |
| 3714 | } |
| 3715 | return false; |
| 3716 | } |
| 3717 | |
| 3718 | bool Value::isUInt() const { |
| 3719 | switch (type()) { |
no test coverage detected