| 103 | } |
| 104 | |
| 105 | void IniWorker::process_utf8(const wchar_t *name, std::string &value, const char *default_value, |
| 106 | bool in_quotes) const { |
| 107 | switch (m_action) { |
| 108 | case Action::save: { |
| 109 | auto str = utf8_to_wstring(value.c_str()); |
| 110 | process(name, str, utf8_to_wstring(default_value), in_quotes); |
| 111 | } |
| 112 | return; |
| 113 | case Action::load: { |
| 114 | std::wstring str; |
| 115 | process(name, str, utf8_to_wstring(default_value), in_quotes); |
| 116 | value = to_utf8_string(str); |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | void IniWorker::process(const wchar_t *name, bool &value, bool default_value) const { |
| 122 | auto int_value = value ? 1 : 0; |
nothing calls this directly
no test coverage detected