| 3738 | } |
| 3739 | |
| 3740 | std::string valueToString(LargestInt value) { |
| 3741 | UIntToStringBuffer buffer; |
| 3742 | char* current = buffer + sizeof(buffer); |
| 3743 | if (value == Value::minLargestInt) { |
| 3744 | uintToString(LargestUInt(Value::maxLargestInt) + 1, current); |
| 3745 | *--current = '-'; |
| 3746 | } else if (value < 0) { |
| 3747 | uintToString(LargestUInt(-value), current); |
| 3748 | *--current = '-'; |
| 3749 | } else { |
| 3750 | uintToString(LargestUInt(value), current); |
| 3751 | } |
| 3752 | assert(current >= buffer); |
| 3753 | return current; |
| 3754 | } |
| 3755 | |
| 3756 | std::string valueToString(LargestUInt value) { |
| 3757 | UIntToStringBuffer buffer; |
no test coverage detected