MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / isUInt

Method isUInt

Sources/Dependencies/jsoncpp/value.cpp:1464–1484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1462 }
1463
1464 bool Value::isUInt() const {
1465 switch (type()) {
1466 case intValue:
1467#if defined(JSON_HAS_INT64)
1468 return value_.int_ >= 0 && LargestUInt(value_.int_) <= LargestUInt(maxUInt);
1469#else
1470 return value_.int_ >= 0;
1471#endif
1472 case uintValue:
1473#if defined(JSON_HAS_INT64)
1474 return value_.uint_ <= maxUInt;
1475#else
1476 return true;
1477#endif
1478 case realValue:
1479 return value_.real_ >= 0 && value_.real_ <= maxUInt && IsIntegral(value_.real_);
1480 default:
1481 break;
1482 }
1483 return false;
1484 }
1485
1486 bool Value::isInt64() const {
1487#if defined(JSON_HAS_INT64)

Callers

nothing calls this directly

Calls 2

typeClass · 0.85
IsIntegralFunction · 0.85

Tested by

no test coverage detected