MCPcopy Create free account
hub / github.com/Samsung/UTopia / isInt64

Method isInt64

external/jsoncpp/jsoncpp.cpp:3732–3750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3730}
3731
3732bool Value::isInt64() const {
3733#if defined(JSON_HAS_INT64)
3734 switch (type()) {
3735 case intValue:
3736 return true;
3737 case uintValue:
3738 return value_.uint_ <= UInt64(maxInt64);
3739 case realValue:
3740 // Note that maxInt64 (= 2^63 - 1) is not exactly representable as a
3741 // double, so double(maxInt64) will be rounded up to 2^63. Therefore we
3742 // require the value to be strictly less than the limit.
3743 return value_.real_ >= double(minInt64) &&
3744 value_.real_ < double(maxInt64) && IsIntegral(value_.real_);
3745 default:
3746 break;
3747 }
3748#endif // JSON_HAS_INT64
3749 return false;
3750}
3751
3752bool Value::isUInt64() const {
3753#if defined(JSON_HAS_INT64)

Callers 1

fromJsonMethod · 0.80

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected