| 3808 | } |
| 3809 | |
| 3810 | bool Value::isUInt() const { |
| 3811 | switch (type_) { |
| 3812 | case intValue: |
| 3813 | #if defined(JSON_HAS_INT64) |
| 3814 | return value_.int_ >= 0 && LargestUInt(value_.int_) <= LargestUInt(maxUInt); |
| 3815 | #else |
| 3816 | return value_.int_ >= 0; |
| 3817 | #endif |
| 3818 | case uintValue: |
| 3819 | #if defined(JSON_HAS_INT64) |
| 3820 | return value_.uint_ <= maxUInt; |
| 3821 | #else |
| 3822 | return true; |
| 3823 | #endif |
| 3824 | case realValue: |
| 3825 | return value_.real_ >= 0 && value_.real_ <= maxUInt && |
| 3826 | IsIntegral(value_.real_); |
| 3827 | default: |
| 3828 | break; |
| 3829 | } |
| 3830 | return false; |
| 3831 | } |
| 3832 | |
| 3833 | bool Value::isInt64() const { |
| 3834 | #if defined(JSON_HAS_INT64) |
nothing calls this directly
no test coverage detected