<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Crystal Space 1.2.1: csCtoW Struct Reference (Crystal Space 1.2.1 Public API Reference)</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head"> <tr height="59"> <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td> <td class="head"><h2>Public API Reference</h2></td> </tr> <tr height="11"> <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td> </tr> </table> <div class="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <h1>csCtoW Struct Reference<br> <small> [<a class="el" href="group__util.html">Utilities</a>]</small> </h1><!-- doxytag: class="csCtoW" -->Helper class to convert char* (UTF-8 encoded )to wchar_t* strings for use as function parameters. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="util_8h-source.html">csutil/util.h</a>></code> <p> <p> <a href="structcsCtoW-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsCtoW.html#2fb293aba8d59eee4d76339fc3219146">csCtoW</a> (const char *s)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#2fb293aba8d59eee4d76339fc3219146"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsCtoW.html#59691abbc218e8ef54f60296c26c851a">operator const wchar_t *</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve the converted string. <a href="#59691abbc218e8ef54f60296c26c851a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsCtoW.html#8e3df064500c6d3cbe0a246c399eb005">~csCtoW</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Deletes the internally stored string. <a href="#8e3df064500c6d3cbe0a246c399eb005"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Helper class to convert char* (UTF-8 encoded )to wchar_t* strings for use as function parameters. <p> Use of this helper class is more convenient than a <a class="el" href="group__util.html#g2ace23f21519843f0649595f9bb05793" title="Allocate a new widechar [] and copy the string into the newly allocated storage.">csStrNewW()</a> / delete[] pair, but essentially does the same (with the convenience of automatic cleanup). <p>Definition at line <a class="el" href="util_8h-source.html#l00152">152</a> of file <a class="el" href="util_8h-source.html">util.h</a>.</p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="2fb293aba8d59eee4d76339fc3219146"></a><!-- doxytag: member="csCtoW::csCtoW" ref="2fb293aba8d59eee4d76339fc3219146" args="(const char *s)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">csCtoW::csCtoW </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>s</em> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor. <p> Stores an UTF-16 converted version of <code>s</code> internally. <p>Definition at line <a class="el" href="util_8h-source.html#l00161">161</a> of file <a class="el" href="util_8h-source.html">util.h</a>.</p> <p>References <a class="el" href="group__util.html#g2ace23f21519843f0649595f9bb05793">csStrNewW()</a>.</p> </div> </div><p> <a class="anchor" name="8e3df064500c6d3cbe0a246c399eb005"></a><!-- doxytag: member="csCtoW::~csCtoW" ref="8e3df064500c6d3cbe0a246c399eb005" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">csCtoW::~csCtoW </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Deletes the internally stored string. <p> <p>Definition at line <a class="el" href="util_8h-source.html#l00166">166</a> of file <a class="el" href="util_8h-source.html">util.h</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="59691abbc218e8ef54f60296c26c851a"></a><!-- doxytag: member="csCtoW::operator const wchar_t *" ref="59691abbc218e8ef54f60296c26c851a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">csCtoW::operator const <a class="el" href="group__util.html#g43124e776b499fd41c598b2f6d210242">wchar_t</a> * </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Retrieve the converted string. <p> <p>Definition at line <a class="el" href="util_8h-source.html#l00171">171</a> of file <a class="el" href="util_8h-source.html">util.h</a>.</p> </div> </div><p> <hr>The documentation for this struct was generated from the following file:<ul> <li>csutil/<a class="el" href="util_8h-source.html">util.h</a></ul> <hr size="1"><address><small>Generated for Crystal Space 1.2.1 by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 </small></address> </div></body> </html>