microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Member Functions | List of all members
microfmt::formatter< foreign_string_view > Struct Reference

Formatter rendering a foreign_string_view. More...

#include <foreign_string_view.hpp>

Public Member Functions

constexpr void parse (format_parse_context &) noexcept
 No-op parse; foreign strings accept no format specifier.
 
void format (const foreign_string_view &view, const sink &out) const noexcept
 Renders the foreign string, chunk-by-chunk.
 

Detailed Description

Formatter rendering a foreign_string_view.

Emits (null) for the null view and <invalid-foreign@0x..> / <fault@0x..> markers for read failures.

Member Function Documentation

◆ format()

void microfmt::formatter< foreign_string_view >::format ( const foreign_string_view &  view,
const sink &  out 
) const
inlinenoexcept

Renders the foreign string, chunk-by-chunk.

Parameters
viewThe foreign string view to format.
outDestination sink.

◆ parse()

constexpr void microfmt::formatter< foreign_string_view >::parse ( format_parse_context &  )
inlineconstexprnoexcept

No-op parse; foreign strings accept no format specifier.


The documentation for this struct was generated from the following file: