13 fmt::dynamic_format_arg_store<fmt::format_context> store;
14 for (
const auto ¶m : params) {
15 store.push_back(
style(param.text(), param.styles()));
17 return fmt::vformat(format_str, store);
virtual std::string style(const std::string &text, Style styles) const =0
Applies styling to a text string.
virtual std::string format(const std::string &format_str, const std::vector< FormatParam > ¶ms) const
Formats a string with styled parameters using fmtlib syntax.