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

Method isInt

Sources/Dependencies/jsoncpp/value.cpp:1446–1462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()) {

Callers

nothing calls this directly

Calls 2

typeClass · 0.85
IsIntegralFunction · 0.85

Tested by

no test coverage detected