MCPcopy Create free account
hub / github.com/Illumina/hap.py / isInt

Method isInt

external/jsoncpp/jsoncpp.cpp:2658–2671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2656bool Value::isBool() const { return type_ == booleanValue; }
2657
2658bool Value::isInt() const {
2659 switch (type_) {
2660 case intValue:
2661 return value_.int_ >= minInt && value_.int_ <= maxInt;
2662 case uintValue:
2663 return value_.uint_ <= UInt(maxInt);
2664 case realValue:
2665 return value_.real_ >= minInt && value_.real_ <= maxInt &&
2666 IsIntegral(value_.real_);
2667 default:
2668 break;
2669 }
2670 return false;
2671}
2672
2673bool Value::isUInt() const {
2674 switch (type_) {

Callers 1

putMethod · 0.80

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected