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