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

Method isUInt

vrclient_x64/jsoncpp.cpp:3719–3732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected