#ifndef BOOKMOUSE_TIME_HPP #define BOOKMOUSE_TIME_HPP #include #include #include #include namespace bookmouse { using TimeInfo = struct tm; class TimeFormat { public: explicit TimeFormat(const char* format); explicit TimeFormat(const fud::String& format); fud::Result format(const TimeInfo& timeInfo); // fud::FudStatus setFormatString(const fud::String& format); private: fud::String m_format; size_t m_sizeNeeded; bool m_utf8Valid{false}; }; } // namespace bookmouse #endif