MCPcopy Create free account
hub / github.com/OpenBoardView/OpenBoardView / utf8_to_utf16

Function utf8_to_utf16

src/openboardview/win32.cpp:23–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23const std::wstring utf8_to_utf16(const std::string &text) {
24 return std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>, wchar_t>{}.from_bytes(text.c_str());
25}
26
27// Mostly from https://msdn.microsoft.com/en-us/library/windows/desktop/ff485843(v=vs.85).aspx
28// Windows Vista minimum

Callers 4

load_fontFunction · 0.85
get_user_dirFunction · 0.85
DocumentSearchMethod · 0.85
ReverseSearchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected