MCPcopy Create free account
hub / github.com/Illumina/hap.py / isUInt

Method isUInt

external/jsoncpp/jsoncpp.cpp:2673–2686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2671}
2672
2673bool Value::isUInt() const {
2674 switch (type_) {
2675 case intValue:
2676 return value_.int_ >= 0 && LargestUInt(value_.int_) <= LargestUInt(maxUInt);
2677 case uintValue:
2678 return value_.uint_ <= maxUInt;
2679 case realValue:
2680 return value_.real_ >= 0 && value_.real_ <= maxUInt &&
2681 IsIntegral(value_.real_);
2682 default:
2683 break;
2684 }
2685 return false;
2686}
2687
2688bool Value::isInt64() const {
2689#if defined(JSON_HAS_INT64)

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected