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

Method isUInt

src/jsoncpp.cpp:3720–3733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3718}
3719
3720bool Value::isUInt() const {
3721 switch (type_) {
3722 case intValue:
3723 return value_.int_ >= 0 && LargestUInt(value_.int_) <= LargestUInt(maxUInt);
3724 case uintValue:
3725 return value_.uint_ <= maxUInt;
3726 case realValue:
3727 return value_.real_ >= 0 && value_.real_ <= maxUInt &&
3728 IsIntegral(value_.real_);
3729 default:
3730 break;
3731 }
3732 return false;
3733}
3734
3735bool Value::isInt64() const {
3736#if defined(JSON_HAS_INT64)

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected