MCPcopy Create free account
hub / github.com/fmtlib/fmt / write_codepoint

Function write_codepoint

include/fmt/format.h:1803–1810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1801
1802template <size_t width, typename Char, typename OutputIt>
1803auto write_codepoint(OutputIt out, char prefix, uint32_t cp) -> OutputIt {
1804 *out++ = static_cast<Char>('\\');
1805 *out++ = static_cast<Char>(prefix);
1806 Char buf[width];
1807 fill_n(buf, width, static_cast<Char>('0'));
1808 format_base2e(4, buf, cp, width);
1809 return copy<Char>(buf, buf + width, out);
1810}
1811
1812template <typename OutputIt, typename Char>
1813auto write_escaped_cp(OutputIt out, const find_escape_result<Char>& escape)

Callers

nothing calls this directly

Calls 2

fill_nFunction · 0.85
format_base2eFunction · 0.85

Tested by

no test coverage detected