MCPcopy Create free account
hub / github.com/ablab/spades / UTF16ToUTF8

Method UTF16ToUTF8

ext/src/cppformat/format.cc:441–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441fmt::internal::UTF16ToUTF8::UTF16ToUTF8(fmt::WStringRef s) {
442 if (int error_code = convert(s)) {
443 FMT_THROW(WindowsError(error_code,
444 "cannot convert string from UTF-16 to UTF-8"));
445 }
446}
447
448int fmt::internal::UTF16ToUTF8::convert(fmt::WStringRef s) {
449 int length = WideCharToMultiByte(CP_UTF8, 0, s.c_str(), -1, 0, 0, 0, 0);

Callers

nothing calls this directly

Calls 2

convertFunction · 0.85
WindowsErrorClass · 0.85

Tested by

no test coverage detected