![]() |
Public API Reference |
![]() |
Helper class to convert wchar_t* to char* (UTF-8 encoded) strings for use as function parameters. More...
#include <csutil/util.h>
Public Member Functions | |
csWtoC (const wchar_t *ws) | |
Constructor. | |
operator const char * () const | |
Retrieve the converted string. | |
~csWtoC () | |
Deletes the internally stored string. |
Helper class to convert wchar_t* to char* (UTF-8 encoded) strings for use as function parameters.
Use of this helper class is more convenient than a csStrNew() / delete[] pair, but essentially does the same (with the convenience of automatic cleanup).
wchar_t* wstr = L"Hello World"; ... iNativeWindow* natwin = ... ; natwin->SetTitle (csWtoC (wstr));
csWtoC::csWtoC | ( | const wchar_t * | ws | ) | [inline] |
csWtoC::~csWtoC | ( | ) | [inline] |
csWtoC::operator const char * | ( | ) | const [inline] |