| 1444 | } |
| 1445 | |
| 1446 | bool Value::isInt() const { |
| 1447 | switch (type()) { |
| 1448 | case intValue: |
| 1449 | #if defined(JSON_HAS_INT64) |
| 1450 | return value_.int_ >= minInt && value_.int_ <= maxInt; |
| 1451 | #else |
| 1452 | return true; |
| 1453 | #endif |
| 1454 | case uintValue: |
| 1455 | return value_.uint_ <= UInt(maxInt); |
| 1456 | case realValue: |
| 1457 | return value_.real_ >= minInt && value_.real_ <= maxInt && IsIntegral(value_.real_); |
| 1458 | default: |
| 1459 | break; |
| 1460 | } |
| 1461 | return false; |
| 1462 | } |
| 1463 | |
| 1464 | bool Value::isUInt() const { |
| 1465 | switch (type()) { |
nothing calls this directly
no test coverage detected