From 876c829512301e3f20161f05d7c193540e6d1710 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sat, 28 Sep 2024 17:39:03 -0500 Subject: Working through file picker. --- src/bookmouse_time.hpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/bookmouse_time.hpp (limited to 'src/bookmouse_time.hpp') diff --git a/src/bookmouse_time.hpp b/src/bookmouse_time.hpp new file mode 100644 index 0000000..5bd15a9 --- /dev/null +++ b/src/bookmouse_time.hpp @@ -0,0 +1,32 @@ +#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 -- cgit v1.2.3