MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Platform_EncodeString

Function Platform_EncodeString

src/Platform_WinCE.c:662–669  ·  view source on GitHub ↗

#######################################################################################################################* *--------------------------------------------------------Platform---------------------------------------------------------* *#########################################################################################################################*/

Source from the content-addressed store, hash-verified

660*--------------------------------------------------------Platform---------------------------------------------------------*
661*#########################################################################################################################*/
662void Platform_EncodeString(cc_winstring* dst, const cc_string* src) {
663 int i;
664
665 MultiByteToWideChar(CP_UTF8, 0, src->buffer, src->length, dst->uni, NATIVE_STR_LEN - 1);
666 dst->uni[src->length] = 0;
667
668 WideCharToMultiByte(CP_ACP, 0, dst->uni, -1, dst->ansi, NATIVE_STR_LEN - 1, NULL, NULL);
669}
670
671void Platform_Init(void) {
672 WSADATA wsaData;

Callers 4

Platform_EncodePathFunction · 0.70
Window_SetTitleFunction · 0.70
OpenSaveFileDialogFunction · 0.70
Window_SetTitleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected