MCPcopy Create free account
hub / github.com/VitalAudio/visage / convertToWide

Method convertToWide

visage_utils/string_utils.h:166–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 }
165
166 static std::wstring convertToWide(const std::u32string& utf32_str) {
167 if constexpr (sizeof(wchar_t) == 4)
168 return { utf32_str.begin(), utf32_str.end() };
169
170 return convertUtf32ToUtf16<std::wstring>(utf32_str);
171 }
172
173 static std::wstring convertToWide(const std::string& utf8_str) {
174 if constexpr (sizeof(wchar_t) == 4)

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected