| 3718 | } |
| 3719 | |
| 3720 | bool Value::isUInt() const { |
| 3721 | switch (type_) { |
| 3722 | case intValue: |
| 3723 | return value_.int_ >= 0 && LargestUInt(value_.int_) <= LargestUInt(maxUInt); |
| 3724 | case uintValue: |
| 3725 | return value_.uint_ <= maxUInt; |
| 3726 | case realValue: |
| 3727 | return value_.real_ >= 0 && value_.real_ <= maxUInt && |
| 3728 | IsIntegral(value_.real_); |
| 3729 | default: |
| 3730 | break; |
| 3731 | } |
| 3732 | return false; |
| 3733 | } |
| 3734 | |
| 3735 | bool Value::isInt64() const { |
| 3736 | #if defined(JSON_HAS_INT64) |
nothing calls this directly
no test coverage detected