MCPcopy Create free account
hub / github.com/SOUI2/soui / isInt

Method isInt

third-part/jsoncpp/src/lib_json/json_value.cpp:1306–1323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1304bool Value::isBool() const { return type_ == booleanValue; }
1305
1306bool Value::isInt() const {
1307 switch (type_) {
1308 case intValue:
1309#if defined(JSON_HAS_INT64)
1310 return value_.int_ >= minInt && value_.int_ <= maxInt;
1311#else
1312 return true;
1313#endif
1314 case uintValue:
1315 return value_.uint_ <= UInt(maxInt);
1316 case realValue:
1317 return value_.real_ >= minInt && value_.real_ <= maxInt &&
1318 IsIntegral(value_.real_);
1319 default:
1320 break;
1321 }
1322 return false;
1323}
1324
1325bool Value::isUInt() const {
1326 switch (type_) {

Callers 1

checkIsMethod · 0.80

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected