MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / isUInt

Method isUInt

AgentBench.old/src/tasks/card_game/logic/src/jsoncpp/jsoncpp.cpp:3810–3831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.70

Tested by

no test coverage detected