blob: 5bd15a9287184e67d163b3cbb9605ac1c4f77592 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef BOOKMOUSE_TIME_HPP
#define BOOKMOUSE_TIME_HPP
#include <fud_status.hpp>
#include <fud_result.hpp>
#include <fud_string.hpp>
#include <ctime>
namespace bookmouse {
using TimeInfo = struct tm;
class TimeFormat {
public:
explicit TimeFormat(const char* format);
explicit TimeFormat(const fud::String& format);
fud::Result<fud::String, fud::FudStatus> 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
|