MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / Utf16ToUtf8

Method Utf16ToUtf8

LuaSTGPlus/UnicodeStringEncoding.cpp:283–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283std::string LuaSTGPlus::Utf16ToUtf8(const wchar_t* p)
284{
285 string tRet;
286 tRet.reserve(128);
287 Convert<Utf16Decoder, Utf8Encoder>(p, tRet);
288 return tRet;
289}
290
291void LuaSTGPlus::Utf8ToUtf16(const char* p, std::wstring& ret)
292{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected