| 2671 | } |
| 2672 | |
| 2673 | bool Value::isUInt() const { |
| 2674 | switch (type_) { |
| 2675 | case intValue: |
| 2676 | return value_.int_ >= 0 && LargestUInt(value_.int_) <= LargestUInt(maxUInt); |
| 2677 | case uintValue: |
| 2678 | return value_.uint_ <= maxUInt; |
| 2679 | case realValue: |
| 2680 | return value_.real_ >= 0 && value_.real_ <= maxUInt && |
| 2681 | IsIntegral(value_.real_); |
| 2682 | default: |
| 2683 | break; |
| 2684 | } |
| 2685 | return false; |
| 2686 | } |
| 2687 | |
| 2688 | bool Value::isInt64() const { |
| 2689 | #if defined(JSON_HAS_INT64) |
nothing calls this directly
no test coverage detected