MCPcopy Create free account
hub / github.com/catboost/catboost / WCHARToUTF8

Function WCHARToUTF8

util/system/fs_win.cpp:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 }
22
23 static TString WCHARToUTF8(const LPWSTR wstr, size_t len) {
24 static_assert(sizeof(WCHAR) == sizeof(wchar16), "expect sizeof(WCHAR) == sizeof(wchar16)");
25
26 return WideToUTF8((wchar16*)wstr, len);
27 }
28
29 HANDLE CreateFileWithUtf8Name(const TStringBuf fName, ui32 accessMode, ui32 shareMode, ui32 createMode, ui32 attributes, bool inheritHandle) {
30 TUtf16String wstr;

Callers 1

Calls 1

WideToUTF8Function · 0.85

Tested by

no test coverage detected