MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / stringsToWideStrings

Function stringsToWideStrings

core/stringconversion.cpp:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15std::vector<std::wstring> stringsToWideStrings(const std::vector<std::string>& strings)
16{
17 std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> converter;
18
19 std::vector<std::wstring> new_strings;
20 for (const std::string& string : strings)
21 {
22 new_strings.push_back(converter.from_bytes(string));
23 }
24 return new_strings;
25}
26
27// ##### WideString to String ##### //
28

Callers 1

responseToFilteredTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected