const wchar_t* ConcatpwChar(const wchar_t* pwChar1, const wchar_t* pwChar2) { wss.str(L""); wss.clear(); wss << pwChar1 << pwChar2; return wss.str().c_str(); }
const wchar_t* LocToWChar(int x, int y, int z) { wssChunk.str(L""); wssChunk.clear(); wssChunk << x << L"_" << y << L"_" << z; free(sssChunk); sssChunk = (wchar_t*) malloc(wssChunk.str().length()*2+2); wcscpy(sssChunk, wssChunk.str().c_str()); return wssChunk.str().c_str(); }
/* ConcatpwChar ***************************** * result is only valid til the next call * use sss/ sssChunk as result after the call */ const wchar_t* ConcatpwChar(const wchar_t* pwChar1, const wchar_t* pwChar2, const wchar_t* pwChar3) { wss.str(L""); wss.clear(); wss << pwChar1 << pwChar2 << pwChar3; free(sss); sss = (wchar_t*) malloc(wss.str().length()*2+2); wcscpy(sss, wss.str().c_str()); return wss.str().c_str(); }
void SetText(const std::wstring &text) { m_ss.clear(); m_ss << text; }