MCPcopy Create free account
hub / github.com/defold/defold / WideToCodePage

Function WideToCodePage

engine/dlib/src/test/test_sys.cpp:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51static bool WideToCodePage(UINT code_page, const wchar_t* src, char* dst, int dst_len)
52{
53 BOOL used_default = FALSE;
54 return WideCharToMultiByte(code_page, WC_NO_BEST_FIT_CHARS, src, -1, dst, dst_len, NULL, &used_default) > 0 && !used_default;
55}
56
57static bool CodePageToWide(UINT code_page, const char* src, wchar_t* dst, int dst_len)
58{

Callers 2

FindAnsiRoundtripSampleFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected