| 1214 | |
| 1215 | template <typename Char> |
| 1216 | FMT_INLINE void write2digits_i(Char* out, size_t value) { |
| 1217 | if (std::is_same<Char, char>::value && !FMT_OPTIMIZE_SIZE) { |
| 1218 | memcpy(out, digits2_i(value), 2); |
| 1219 | return; |
| 1220 | } |
| 1221 | *out++ = static_cast<Char>(digits2_i(value)[0]); |
| 1222 | *out = static_cast<Char>(digits2_i(value)[1]); |
| 1223 | } |
| 1224 | |
| 1225 | // Formats a decimal unsigned integer value writing to out pointing to a buffer |
| 1226 | // of specified size. The caller must ensure that the buffer is large enough. |
no test coverage detected