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

Function to_string

include/fmt/format.h:903–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

901
902template <size_t SIZE>
903FMT_NODISCARD auto to_string(const basic_memory_buffer<char, SIZE>& buf)
904 -> std::string {
905 auto size = buf.size();
906 detail::assume(size < std::string().max_size());
907 return {buf.data(), size};
908}
909
910// A writer to a buffered stream. It doesn't own the underlying stream.
911class writer {

Callers 15

TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
vformat_messageFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
test_format_apiFunction · 0.85
TESTFunction · 0.85
uniq_file_nameFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85

Calls 7

assumeFunction · 0.85
stringClass · 0.85
max_ofFunction · 0.85
format_asFunction · 0.70
sizeMethod · 0.45
max_sizeMethod · 0.45
dataMethod · 0.45

Tested by 14

TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
vformat_messageFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
test_format_apiFunction · 0.68
TESTFunction · 0.68
uniq_file_nameFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68