| 4178 | } |
| 4179 | |
| 4180 | JSONCPP_STRING valueToString(LargestInt value) { |
| 4181 | UIntToStringBuffer buffer; |
| 4182 | char* current = buffer + sizeof(buffer); |
| 4183 | if (value == Value::minLargestInt) { |
| 4184 | uintToString(LargestUInt(Value::maxLargestInt) + 1, current); |
| 4185 | *--current = '-'; |
| 4186 | } else if (value < 0) { |
| 4187 | uintToString(LargestUInt(-value), current); |
| 4188 | *--current = '-'; |
| 4189 | } else { |
| 4190 | uintToString(LargestUInt(value), current); |
| 4191 | } |
| 4192 | assert(current >= buffer); |
| 4193 | return current; |
| 4194 | } |
| 4195 | |
| 4196 | JSONCPP_STRING valueToString(LargestUInt value) { |
| 4197 | UIntToStringBuffer buffer; |
no test coverage detected