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

Method isInt

src/jsoncpp.cpp:3705–3718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected