CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csCtoW Struct Reference
[Utilities]

Helper class to convert (UTF-8)widechar* to char* strings for use as function parameters. More...

#include <util.h>

List of all members.

Public Methods

 csCtoW (const char *s)
 Constructor.

 ~csCtoW ()
 Deletes the internally stored string.

 operator const wchar_t * () const
 Retrieve the converted string.


Detailed Description

Helper class to convert (UTF-8)widechar* to char* strings for use as function parameters.

Use of this helper class is more convenient than an a csStrNewW() / delete[], but essentially does the same.

Definition at line 95 of file util.h.


Constructor & Destructor Documentation

csCtoW::csCtoW const char *    s [inline]
 

Constructor.

Stores an UTF-16 converted version of s internally.

Definition at line 104 of file util.h.

References csStrNewW().

csCtoW::~csCtoW   [inline]
 

Deletes the internally stored string.

Definition at line 109 of file util.h.


Member Function Documentation

csCtoW::operator const wchar_t *   const [inline]
 

Retrieve the converted string.

Definition at line 114 of file util.h.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.18