MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / isInt

Method isInt

src/share/jsoncpp/jsoncpp.cpp:3727–3744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3725bool Value::isBool() const { return type_ == booleanValue; }
3726
3727bool Value::isInt() const {
3728 switch (type_) {
3729 case intValue:
3730#if defined(JSON_HAS_INT64)
3731 return value_.int_ >= minInt && value_.int_ <= maxInt;
3732#else
3733 return true;
3734#endif
3735 case uintValue:
3736 return value_.uint_ <= UInt(maxInt);
3737 case realValue:
3738 return value_.real_ >= minInt && value_.real_ <= maxInt &&
3739 IsIntegral(value_.real_);
3740 default:
3741 break;
3742 }
3743 return false;
3744}
3745
3746bool Value::isUInt() const {
3747 switch (type_) {

Callers 1

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected