MCPcopy Create free account
hub / github.com/Illumina/paragraph / isInt

Method isInt

external/jsoncpp/jsoncpp.cpp:3775–3792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3773bool Value::isBool() const { return type_ == booleanValue; }
3774
3775bool Value::isInt() const {
3776 switch (type_) {
3777 case intValue:
3778#if defined(JSON_HAS_INT64)
3779 return value_.int_ >= minInt && value_.int_ <= maxInt;
3780#else
3781 return true;
3782#endif
3783 case uintValue:
3784 return value_.uint_ <= UInt(maxInt);
3785 case realValue:
3786 return value_.real_ >= minInt && value_.real_ <= maxInt &&
3787 IsIntegral(value_.real_);
3788 default:
3789 break;
3790 }
3791 return false;
3792}
3793
3794bool Value::isUInt() const {
3795 switch (type_) {

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected