| 1704 | |
| 1705 | template <typename Char, typename OutputIt, typename UIntPtr> |
| 1706 | auto write_ptr(OutputIt out, UIntPtr value, const format_specs<Char>* specs) -> OutputIt { |
| 1707 | int num_digits = count_digits<4>(value); |
| 1708 | auto size = to_unsigned(num_digits) + size_t(2); |
| 1709 | auto write = [=](reserve_iterator<OutputIt> it) { |
| 1710 | *it++ = static_cast<Char>('0'); |
| 1711 | *it++ = static_cast<Char>('x'); |
| 1712 | return format_uint<4, Char>(it, value, num_digits); |
| 1713 | }; |
| 1714 | return specs ? write_padded<align::right>(out, *specs, size, write) : base_iterator(out, write(reserve(out, size))); |
| 1715 | } |
| 1716 | |
| 1717 | // Returns true iff the code point cp is printable. |
| 1718 | FMT_API auto is_printable(uint32_t cp) -> bool; |
nothing calls this directly
no test coverage detected