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

Function wideStringsToStrings

core/stringconversion.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35std::vector<std::string> wideStringsToStrings(const std::vector<std::wstring> strings)
36{
37 std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> converter;
38
39 std::vector<std::string> new_strings;
40 for (const std::wstring& string : strings)
41 {
42 new_strings.push_back(converter.to_bytes(string));
43 }
44 return new_strings;
45}
46
47void lower(std::string &s)
48{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected