MCPcopy Create free account
hub / github.com/AgoraIO/API-Examples / cs2ANSI

Function cs2ANSI

windows/APIExample/APIExample/stdafx.cpp:351–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351std::string cs2ANSI(CString str)
352{
353 char szBuf[2 * MAX_PATH] = { 0 };
354 WideCharToMultiByte(CP_ACP, 0, str.GetBuffer(0), str.GetLength(), szBuf, 2 * MAX_PATH, NULL, NULL);
355 return szBuf;
356}
357CString utf82cs(std::string utf8)
358{
359 /* TCHAR szBuf[2048] = { 0 };

Callers

nothing calls this directly

Calls 1

GetLengthMethod · 0.80

Tested by

no test coverage detected