| 4141 | } |
| 4142 | |
| 4143 | std::string valueToString(LargestInt value) { |
| 4144 | UIntToStringBuffer buffer; |
| 4145 | char* current = buffer + sizeof(buffer); |
| 4146 | if (value == Value::minLargestInt) { |
| 4147 | uintToString(LargestUInt(Value::maxLargestInt) + 1, current); |
| 4148 | *--current = '-'; |
| 4149 | } else if (value < 0) { |
| 4150 | uintToString(LargestUInt(-value), current); |
| 4151 | *--current = '-'; |
| 4152 | } else { |
| 4153 | uintToString(LargestUInt(value), current); |
| 4154 | } |
| 4155 | assert(current >= buffer); |
| 4156 | return current; |
| 4157 | } |
| 4158 | |
| 4159 | std::string valueToString(LargestUInt value) { |
| 4160 | UIntToStringBuffer buffer; |
no test coverage detected