MCPcopy Create free account
hub / github.com/Illumina/paragraph / isUInt

Method isUInt

external/jsoncpp/jsoncpp.cpp:3794–3815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected