| 90 | #endif |
| 91 | |
| 92 | JSONCPP_STRING valueToString(LargestInt value) { |
| 93 | UIntToStringBuffer buffer; |
| 94 | char* current = buffer + sizeof(buffer); |
| 95 | if (value == Value::minLargestInt) { |
| 96 | uintToString(LargestUInt(Value::maxLargestInt) + 1, current); |
| 97 | *--current = '-'; |
| 98 | } else if (value < 0) { |
| 99 | uintToString(LargestUInt(-value), current); |
| 100 | *--current = '-'; |
| 101 | } else { |
| 102 | uintToString(LargestUInt(value), current); |
| 103 | } |
| 104 | assert(current >= buffer); |
| 105 | return current; |
| 106 | } |
| 107 | |
| 108 | JSONCPP_STRING valueToString(LargestUInt value) { |
| 109 | UIntToStringBuffer buffer; |
no test coverage detected