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

Method IsUInteger

library/cpp/json/writer/json_value.cpp:778–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776 }
777
778 bool TJsonValue::IsUInteger() const noexcept {
779 switch (Type) {
780 case JSON_UINTEGER:
781 return true;
782 case JSON_INTEGER:
783 return (Value.Integer >= 0);
784 case JSON_DOUBLE:
785 return ((unsigned long long)Value.Double == Value.Double);
786 default:
787 return false;
788 }
789 }
790
791 bool TJsonValue::IsDouble() const noexcept {
792 // Check whether we can convert integer to floating-point

Callers 2

operator==Method · 0.45
Y_UNIT_TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected