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

Method isUInt

cpp/cppsdk/jsoncpp.cpp:3815–3836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3813}
3814
3815bool Value::isUInt() const {
3816 switch (type_) {
3817 case intValue:
3818#if defined(JSON_HAS_INT64)
3819 return value_.int_ >= 0 && LargestUInt(value_.int_) <= LargestUInt(maxUInt);
3820#else
3821 return value_.int_ >= 0;
3822#endif
3823 case uintValue:
3824#if defined(JSON_HAS_INT64)
3825 return value_.uint_ <= maxUInt;
3826#else
3827 return true;
3828#endif
3829 case realValue:
3830 return value_.real_ >= 0 && value_.real_ <= maxUInt &&
3831 IsIntegral(value_.real_);
3832 default:
3833 break;
3834 }
3835 return false;
3836}
3837
3838bool Value::isInt64() const {
3839#if defined(JSON_HAS_INT64)

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected