| 3086 | } |
| 3087 | |
| 3088 | std::string valueToString(LargestInt value) { |
| 3089 | UIntToStringBuffer buffer; |
| 3090 | char *current = buffer + sizeof(buffer); |
| 3091 | bool isNegative = value < 0; |
| 3092 | if (isNegative) |
| 3093 | value = -value; |
| 3094 | uintToString(LargestUInt(value), current); |
| 3095 | if (isNegative) |
| 3096 | *--current = '-'; |
| 3097 | assert(current >= buffer); |
| 3098 | return current; |
| 3099 | } |
| 3100 | |
| 3101 | std::string valueToString(LargestUInt value) { |
| 3102 | UIntToStringBuffer buffer; |
no test coverage detected