MCPcopy Create free account
hub / github.com/catboost/catboost / IsInteger

Method IsInteger

library/cpp/json/writer/json_value.cpp:765–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763 }
764
765 bool TJsonValue::IsInteger() const noexcept {
766 switch (Type) {
767 case JSON_INTEGER:
768 return true;
769 case JSON_UINTEGER:
770 return (Value.UInteger <= static_cast<unsigned long long>(Max<long long>()));
771 case JSON_DOUBLE:
772 return ((long long)Value.Double == Value.Double);
773 default:
774 return false;
775 }
776 }
777
778 bool TJsonValue::IsUInteger() const noexcept {
779 switch (Type) {

Callers 2

operator==Method · 0.45
Y_UNIT_TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected