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

Method IsUInteger

library/cpp/json/ordered_maps/json_value_ordered.cpp:853–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851 }
852
853 bool TJsonValue::IsUInteger() const noexcept {
854 switch (Type) {
855 case JSON_UINTEGER:
856 return true;
857 case JSON_INTEGER:
858 return (Value.Integer >= 0);
859 case JSON_DOUBLE:
860 return ((unsigned long long)Value.Double == Value.Double);
861 default:
862 return false;
863 }
864 }
865
866 bool TJsonValue::IsDouble() const noexcept {
867 // Check whether we can convert integer to floating-point

Callers 3

operator==Method · 0.45
Y_UNIT_TESTFunction · 0.45
Y_UNIT_TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected