MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / SetString

Method SetString

WinArk/Settings.cpp:154–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void Settings::SetString(PCWSTR name, PCWSTR value) {
155 auto it = _settings.find(name);
156 if (it != _settings.end()) {
157 it->second.SetString(value);
158 }
159 else {
160 Setting s(name, value);
161 _settings.insert({ name,std::move(s) });
162 }
163}
164
165std::wstring Settings::GetString(PCWSTR name) const {
166 auto it = _settings.find(name);

Callers 1

LoadFromFileMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected