| 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) { |
no outgoing calls
no test coverage detected