| 49 | } |
| 50 | |
| 51 | static 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 | |
| 57 | static bool CodePageToWide(UINT code_page, const char* src, wchar_t* dst, int dst_len) |
| 58 | { |
no outgoing calls
no test coverage detected