#######################################################################################################################* *--------------------------------------------------------Platform---------------------------------------------------------* *#########################################################################################################################*/
| 660 | *--------------------------------------------------------Platform---------------------------------------------------------* |
| 661 | *#########################################################################################################################*/ |
| 662 | void 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 | |
| 671 | void Platform_Init(void) { |
| 672 | WSADATA wsaData; |
no outgoing calls
no test coverage detected