| 162 | |
| 163 | template <typename Int> |
| 164 | void FormatAllDigits(Int value, char** cursor) { |
| 165 | assert(value >= 0); |
| 166 | while (value >= 100) { |
| 167 | FormatTwoDigits(value % 100, cursor); |
| 168 | value /= 100; |
| 169 | } |
| 170 | |
| 171 | if (value >= 10) { |
| 172 | FormatTwoDigits(value, cursor); |
| 173 | } else { |
| 174 | FormatOneDigit(value, cursor); |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | template <typename Int> |
| 179 | void FormatAllDigitsLeftPadded(Int value, size_t pad, char pad_char, char** cursor) { |
no test coverage detected