| 2881 | } |
| 2882 | |
| 2883 | void format_signed(long long value) { |
| 2884 | auto abs_value = static_cast<unsigned long long>(value); |
| 2885 | bool negative = value < 0; |
| 2886 | if (negative) abs_value = 0 - abs_value; |
| 2887 | str_ = format_decimal(abs_value); |
| 2888 | if (negative) *--str_ = '-'; |
| 2889 | } |
| 2890 | |
| 2891 | public: |
| 2892 | explicit format_int(int value) { format_signed(value); } |
nothing calls this directly
no test coverage detected