MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / isInt

Method isInt

vrclient_x64/jsoncpp.cpp:3704–3717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3702bool Value::isBool() const { return type_ == booleanValue; }
3703
3704bool Value::isInt() const {
3705 switch (type_) {
3706 case intValue:
3707 return value_.int_ >= minInt && value_.int_ <= maxInt;
3708 case uintValue:
3709 return value_.uint_ <= UInt(maxInt);
3710 case realValue:
3711 return value_.real_ >= minInt && value_.real_ <= maxInt &&
3712 IsIntegral(value_.real_);
3713 default:
3714 break;
3715 }
3716 return false;
3717}
3718
3719bool Value::isUInt() const {
3720 switch (type_) {

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected