| 838 | } |
| 839 | |
| 840 | bool TJsonValue::IsInteger() const noexcept { |
| 841 | switch (Type) { |
| 842 | case JSON_INTEGER: |
| 843 | return true; |
| 844 | case JSON_UINTEGER: |
| 845 | return (Value.UInteger <= static_cast<unsigned long long>(Max<long long>())); |
| 846 | case JSON_DOUBLE: |
| 847 | return ((long long)Value.Double == Value.Double); |
| 848 | default: |
| 849 | return false; |
| 850 | } |
| 851 | } |
| 852 | |
| 853 | bool TJsonValue::IsUInteger() const noexcept { |
| 854 | switch (Type) { |
no outgoing calls
no test coverage detected