#ifndef NEWSBOAT_FORMATSTRING_H_ #define NEWSBOAT_FORMATSTRING_H_ #include "libnewsboat-ffi/src/fmtstrformatter.rs.h" #include namespace newsboat { class FmtStrFormatter { public: FmtStrFormatter(); FmtStrFormatter(FmtStrFormatter&&) = default; FmtStrFormatter& operator=(FmtStrFormatter&&) = default; ~FmtStrFormatter() = default; void register_fmt(char f, const std::string& value); std::string do_format(const std::string& fmt, unsigned int width = 0); private: rust::Box rs_object; }; } // namespace newsboat #endif /* NEWSBOAT_FORMATSTRING_H_ */