MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / cvtcat

Method cvtcat

UTCP/src/UT_StrOp.cpp:90–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89}
90void CUT_Str::cvtcat(wchar_t * dest, size_t size, const char * source)
91{
92 *dest = _T('\0');
93 size_t len = strlen(source);
94 if(len > 0)
95 {
96 ++len;
97 _TCHAR *szConverted = new _TCHAR[len+1];
98 mbstowcs(szConverted, len, source, len);
99#if _MSC_VER >= 1400
100 _tcscat_s(dest, size, szConverted);
101#else
102 UNREFERENCED_PARAMETER(size);
103 ::_tcscat(dest, szConverted);
104#endif
105 delete [] szConverted;
106 }
107}
108void CUT_Str::cvtcat(char * dest, size_t size, const wchar_t * source)
109{
110 *dest = '\0';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected