| 82 | #endif |
| 83 | |
| 84 | JSONCPP_STRING valueToString(LargestInt value) { |
| 85 | UIntToStringBuffer buffer; |
| 86 | char* current = buffer + sizeof(buffer); |
| 87 | if (value == Value::minLargestInt) { |
| 88 | uintToString(LargestUInt(Value::maxLargestInt) + 1, current); |
| 89 | *--current = '-'; |
| 90 | } else if (value < 0) { |
| 91 | uintToString(LargestUInt(-value), current); |
| 92 | *--current = '-'; |
| 93 | } else { |
| 94 | uintToString(LargestUInt(value), current); |
| 95 | } |
| 96 | assert(current >= buffer); |
| 97 | return current; |
| 98 | } |
| 99 | |
| 100 | JSONCPP_STRING valueToString(LargestUInt value) { |
| 101 | UIntToStringBuffer buffer; |
no test coverage detected