MCPcopy Create free account
hub / github.com/PlayFab/gsdk / isInt

Method isInt

cpp/cppsdk/jsoncpp.cpp:3796–3813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3794bool Value::isBool() const { return type_ == booleanValue; }
3795
3796bool Value::isInt() const {
3797 switch (type_) {
3798 case intValue:
3799#if defined(JSON_HAS_INT64)
3800 return value_.int_ >= minInt && value_.int_ <= maxInt;
3801#else
3802 return true;
3803#endif
3804 case uintValue:
3805 return value_.uint_ <= UInt(maxInt);
3806 case realValue:
3807 return value_.real_ >= minInt && value_.real_ <= maxInt &&
3808 IsIntegral(value_.real_);
3809 default:
3810 break;
3811 }
3812 return false;
3813}
3814
3815bool Value::isUInt() const {
3816 switch (type_) {

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected