csWtoC Struct Reference
[Utilities]
Helper class to convert widechar* to char*(UTF-8) strings for use as function parameters.
More...
#include <util.h>
Public Methods | |
csWtoC (const wchar_t *ws) | |
Constructor. | |
~csWtoC () | |
Deletes the internally stored string. | |
operator const char * () const | |
Retrieve the converted string. |
Detailed Description
Helper class to convert widechar* to char*(UTF-8) strings for use as function parameters.Use of this helper class is more convenient than an a csStrNewW() / delete[], but essentially does the same.
wchar_t* wstr = L"Hello World"; ... iNativeWindow* natwin = ... ; natwin->SetTitle (csWtoC (wstr));
Definition at line 66 of file util.h.
Constructor & Destructor Documentation
|
Constructor.
Stores an UTF-8 converted version of Definition at line 75 of file util.h. References csStrNew(). |
|
Deletes the internally stored string.
|
Member Function Documentation
|
Retrieve the converted string.
|
The documentation for this struct was generated from the following file:
- csutil/util.h
Generated for Crystal Space by doxygen 1.2.18