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