MCPcopy Create free account
hub / github.com/LemLib/LemLib / write_codepoint

Function write_codepoint

include/fmt/format.h:1780–1788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1778#define FMT_STRING(s) FMT_STRING_IMPL(s, fmt::detail::compile_string, )
1779
1780template <size_t width, typename Char, typename OutputIt> auto write_codepoint(OutputIt out, char prefix, uint32_t cp)
1781 -> OutputIt {
1782 *out++ = static_cast<Char>('\\');
1783 *out++ = static_cast<Char>(prefix);
1784 Char buf[width];
1785 fill_n(buf, width, static_cast<Char>('0'));
1786 format_uint<4>(buf, cp, width);
1787 return copy_str<Char>(buf, buf + width, out);
1788}
1789
1790template <typename OutputIt, typename Char> auto write_escaped_cp(OutputIt out, const find_escape_result<Char>& escape)
1791 -> OutputIt {

Callers

nothing calls this directly

Calls 1

fill_nFunction · 0.85

Tested by

no test coverage detected