MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / utf16_to_utf8

Method utf16_to_utf8

extlibs/fmt/src/os.cc:76–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75#ifdef _WIN32
76internal::utf16_to_utf8::utf16_to_utf8(wstring_view s) {
77 if (int error_code = convert(s)) {
78 FMT_THROW(windows_error(error_code,
79 "cannot convert string from UTF-16 to UTF-8"));
80 }
81}
82
83int internal::utf16_to_utf8::convert(wstring_view s) {
84 if (s.size() > INT_MAX) return ERROR_INVALID_PARAMETER;

Callers

nothing calls this directly

Calls 2

windows_errorClass · 0.85
convertFunction · 0.50

Tested by

no test coverage detected