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

#include <styled.hpp>

Collaboration diagram for microfmt::styled_str_view:
Collaboration graph
[legend]

Public Attributes

microfmt::string_view text {}
 
size_t width {0}
 
char fill_char {' '}
 
text_align align {text_align::left}
 
text_case casing {text_case::none}
 
quote_style quote {quote_style::none}
 
size_t max_len {0}
 
bool ellipsis {true}
 

Detailed Description

Lightweight configuration for a styled text value.

Set max_len to zero to disable truncation. When truncation is enabled, ellipsis appends three dots when max_len is greater than three.

Member Data Documentation

◆ align

text_align microfmt::styled_str_view::align {text_align::left}

◆ casing

text_case microfmt::styled_str_view::casing {text_case::none}

◆ ellipsis

bool microfmt::styled_str_view::ellipsis {true}

◆ fill_char

char microfmt::styled_str_view::fill_char {' '}

◆ max_len

size_t microfmt::styled_str_view::max_len {0}

◆ quote

quote_style microfmt::styled_str_view::quote {quote_style::none}

◆ text

microfmt::string_view microfmt::styled_str_view::text {}

◆ width

size_t microfmt::styled_str_view::width {0}

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