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

Function write_debug_string

include/fmt/ranges.h:399–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397 template <typename Output, typename It, typename Sentinel, typename U = T,
398 FMT_ENABLE_IF(std::is_same<U, Char>::value)>
399 auto write_debug_string(Output& out, It it, Sentinel end) const -> Output {
400 auto buf = basic_memory_buffer<Char>();
401 for (; it != end; ++it) buf.push_back(*it);
402 auto specs = format_specs();
403 specs.set_type(presentation_type::debug);
404 return detail::write<Char>(
405 out, basic_string_view<Char>(buf.data(), buf.size()), specs);
406 }
407
408 template <typename Output, typename It, typename Sentinel, typename U = T,
409 FMT_ENABLE_IF(!std::is_same<U, Char>::value)>

Callers 1

formatFunction · 0.85

Calls 5

format_specsClass · 0.85
set_typeMethod · 0.80
push_backMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected