| 3066 | } |
| 3067 | |
| 3068 | std::string valueToString(LargestInt value) { |
| 3069 | UIntToStringBuffer buffer; |
| 3070 | char* current = buffer + sizeof(buffer); |
| 3071 | bool isNegative = value < 0; |
| 3072 | if (isNegative) |
| 3073 | value = -value; |
| 3074 | uintToString(LargestUInt(value), current); |
| 3075 | if (isNegative) |
| 3076 | *--current = '-'; |
| 3077 | assert(current >= buffer); |
| 3078 | return current; |
| 3079 | } |
| 3080 | |
| 3081 | std::string valueToString(LargestUInt value) { |
| 3082 | UIntToStringBuffer buffer; |
no test coverage detected