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

#include <styled.hpp>

Collaboration diagram for microfmt::formatter< styled_str_view >:
Collaboration graph
[legend]

Public Member Functions

MICROFMT_API_CONSTEXPR void parse (format_parse_context &ctx) noexcept
 
MICROFMT_API void format (const styled_str_view &input, const sink &out) const noexcept
 

Public Attributes

styled_str_view cfg {}
 
bool align_set {false}
 
bool fill_set {false}
 

Detailed Description

Formatter for styled_str_view.

The format specifier accepts [fill][align][width][flags], where align is <, >, or ^; flags are u (uppercase), l (lowercase), t (title case), q (double quotes), b (square brackets), and .N (truncate to N characters with an ellipsis when possible). Specifier settings override the corresponding view settings.

Member Function Documentation

◆ format()

MICROFMT_API void microfmt::formatter< styled_str_view >::format ( const styled_str_view &  input,
const sink &  out 
) const
noexcept

◆ parse()

Member Data Documentation

◆ align_set

bool microfmt::formatter< styled_str_view >::align_set {false}

◆ cfg

◆ fill_set

bool microfmt::formatter< styled_str_view >::fill_set {false}

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