10 FormattedTitle(l10n::String format_str, std::optional<uint8_t> arg = std::nullopt)
11 : format_str_(format_str), arg_{arg} {}
13 void format(int32_t arg)
const {
14 title_ = l10n::get(format_str_);
15 asterixToInt(title_.data(), arg);
18 [[nodiscard]] std::string_view title()
const {
19 if (arg_.has_value()) {
28 l10n::String format_str_;
29 mutable std::string title_;
30 mutable std::optional<uint8_t> arg_;