| 1746 | |
| 1747 | template <typename Char, typename OutputIt, typename UIntPtr> |
| 1748 | auto write_ptr(OutputIt out, UIntPtr value, const format_specs* specs) |
| 1749 | -> OutputIt { |
| 1750 | int num_digits = count_digits<4>(value); |
| 1751 | auto size = to_unsigned(num_digits) + size_t(2); |
| 1752 | auto write = [=](reserve_iterator<OutputIt> it) { |
| 1753 | *it++ = static_cast<Char>('0'); |
| 1754 | *it++ = static_cast<Char>('x'); |
| 1755 | return format_base2e<Char>(4, it, value, num_digits); |
| 1756 | }; |
| 1757 | return specs ? write_padded<Char, align::right>(out, *specs, size, write) |
| 1758 | : base_iterator(out, write(reserve(out, size))); |
| 1759 | } |
| 1760 | |
| 1761 | // Returns true iff the code point cp is printable. |
| 1762 | FMT_API auto is_printable(uint32_t cp) -> bool; |
nothing calls this directly
no test coverage detected