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

Method GetMultiString

WinArk/Settings.h:148–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 int GetInt32(PCWSTR name) const;
147
148 std::vector<std::wstring> GetMultiString(PCWSTR name) const {
149 auto it = _settings.find(name);
150 if (it == _settings.end())
151 return {};
152
153 auto p = it->second.Buffer.get();
154 std::vector<std::wstring> values;
155 while (*p) {
156 values.push_back(std::wstring((PCWSTR)p));
157 p += (wcslen((PCWSTR)p) + 1) * sizeof(WCHAR);
158 }
159 return values;
160 }
161
162 template<typename T>
163 T* GetBinary(PCWSTR name) const {

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected