<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>ucommon: ucommon/unicode.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.3 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div> <div class="contents"> <h1>ucommon/unicode.h File Reference</h1> <p>Basic UCommon Unicode support. <a href="#_details">More...</a></p> <code>#include <<a class="el" href="a00201_source.html">ucommon/string.h</a>></code><br/> <div class="dynheader"> Include dependency graph for unicode.h:</div> <div class="dynsection"> <div class="center"><img src="a00274.png" border="0" usemap="#ucommon_2unicode_8h_map" alt=""/></div> <map name="ucommon_2unicode_8h_map" id="ucommon_2unicode_8h"> <area shape="rect" id="node3" href="a00201.html" title="A common string class and character string support functions." alt="" coords="1140,80,1321,107"/><area shape="rect" id="node5" href="a00194.html" title="Various miscellaneous platform specific headers and defines." alt="" coords="885,304,1088,331"/><area shape="rect" id="node28" href="a00186.html" title="Generic templates for C++." alt="" coords="1220,229,1423,256"/><area shape="rect" id="node36" href="a00195.html" title="Abstract interfaces and support." alt="" coords="935,229,1145,256"/><area shape="rect" id="node39" href="a00192.html" title="A common object base class with auto-pointer support." alt="" coords="1204,155,1385,181"/></map> </div> <div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dynsection"> <div class="center"><img src="a00275.png" border="0" usemap="#ucommon_2unicode_8hdep_map" alt=""/></div> <map name="ucommon_2unicode_8hdep_map" id="ucommon_2unicode_8hdep"> <area shape="rect" id="node3" href="a00204.html" title="Top level include file for the GNU uCommon C++ core library." alt="" coords="5,80,197,107"/><area shape="rect" id="node5" href="a00196.html" title="This library holds basic cryptographic functions and secure socket support for use..." alt="" coords="11,155,192,181"/></map> </div> <p><a href="a00205_source.html">Go to the source code of this file.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Data Structures</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="a00169.html">ucommon::UString</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A copy-on-write <a class="el" href="a00170.html" title="A core class of ut8 encoded string functions.">utf8</a> string class that operates by reference count. <a href="a00169.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="a00170.html">ucommon::utf8</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A core class of ut8 encoded string functions. <a href="a00170.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="a00171.html">ucommon::utf8_pointer</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Pointer to <a class="el" href="a00170.html" title="A core class of ut8 encoded string functions.">utf8</a> encoded character data. <a href="a00171.html#_details">More...</a><br/></td></tr> <tr><td colspan="2"><h2>Namespaces</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="a00208.html">ucommon</a></td></tr> <p><tr><td class="mdescLeft"> </td><td class="mdescRight"><p>Common namespace for all ucommon objects. </p> <br/></td></tr> </p> <tr><td colspan="2"><h2>Typedefs</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00208.html#ad62b38285d5dfd20839751626aab25c3">ucommon::ucs2_t</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">16 bit unicode character code. <a href="#ad62b38285d5dfd20839751626aab25c3"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00208.html#aaa2499ef76785d12d303b525ad1a042e">ucommon::ucs4_t</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">32 bit unicode character code. <a href="#aaa2499ef76785d12d303b525ad1a042e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adca8b750ad72af446956b5a97570b53f"></a><!-- doxytag: member="unicode.h::unicode_t" ref="adca8b750ad72af446956b5a97570b53f" args="" --> typedef void * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00208.html#adca8b750ad72af446956b5a97570b53f">ucommon::unicode_t</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Resolves issues where wchar_t is not defined. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ad1cc10ef952a7614ea5a8e58c398f2"></a><!-- doxytag: member="unicode.h::ustring_t" ref="a2ad1cc10ef952a7614ea5a8e58c398f2" args="" --> typedef UString </td><td class="memItemRight" valign="bottom"><a class="el" href="a00208.html#a2ad1cc10ef952a7614ea5a8e58c398f2">ucommon::ustring_t</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convenience type for <a class="el" href="a00170.html" title="A core class of ut8 encoded string functions.">utf8</a> encoded strings. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3271a380c7adf37492cce13c4586b78a"></a><!-- doxytag: member="unicode.h::utf8_t" ref="a3271a380c7adf37492cce13c4586b78a" args="" --> typedef utf8_pointer </td><td class="memItemRight" valign="bottom"><a class="el" href="a00208.html#a3271a380c7adf37492cce13c4586b78a">ucommon::utf8_t</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convenience type for <a class="el" href="a00171.html" title="Pointer to utf8 encoded character data.">utf8_pointer</a> strings. <br/></td></tr> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memTemplParams" colspan="2"><a class="anchor" id="aeaa0a1ca80e48c98beab10462d108527"></a><!-- doxytag: member="unicode.h::dupfree< ucs2_t * >" ref="aeaa0a1ca80e48c98beab10462d108527" args="(ucs2_t *string)" --> template<> </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><b>ucommon::dupfree< ucs2_t * ></b> (ucs2_t *string)</td></tr> <tr><td class="memTemplParams" colspan="2"><a class="anchor" id="a18e8ae9f070bc3285b1193adceba9970"></a><!-- doxytag: member="unicode.h::dupfree< ucs4_t * >" ref="a18e8ae9f070bc3285b1193adceba9970" args="(ucs4_t *string)" --> template<> </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><b>ucommon::dupfree< ucs4_t * ></b> (ucs4_t *string)</td></tr> <tr><td class="memTemplParams" colspan="2"><a class="anchor" id="a8b9a8920ebc808b252973d28ea52736d"></a><!-- doxytag: member="unicode.h::dupfree< unicode_t >" ref="a8b9a8920ebc808b252973d28ea52736d" args="(unicode_t string)" --> template<> </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><b>ucommon::dupfree< unicode_t ></b> (unicode_t string)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aefb04dc892a125a424ebed57c061de57"></a><!-- doxytag: member="unicode.h::strudup" ref="aefb04dc892a125a424ebed57c061de57" args="(const char *string)" --> ucs4_t * </td><td class="memItemRight" valign="bottom"><b>ucommon::strudup</b> (const char *string)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c96041e0e9a207b2c5c91d13e100ae4"></a><!-- doxytag: member="unicode.h::strwdup" ref="a1c96041e0e9a207b2c5c91d13e100ae4" args="(const char *string)" --> ucs2_t * </td><td class="memItemRight" valign="bottom"><b>ucommon::strwdup</b> (const char *string)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa5421e9490709d6412d91e318d1dd441"></a><!-- doxytag: member="unicode.h::unidup" ref="aa5421e9490709d6412d91e318d1dd441" args="(const char *string)" --> unicode_t </td><td class="memItemRight" valign="bottom"><b>ucommon::unidup</b> (const char *string)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Basic UCommon Unicode support. </p> <p>This includes computing unicode transcoding and supporting a UTF8-aware string class (UString). We may add support for a wchar_t aware string class as well, as some external api libraries may require ucs-2 or 4 encoded strings. </p> <p>Definition in file <a class="el" href="a00205_source.html">unicode.h</a>.</p> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Jul 14 16:39:18 2011 for ucommon by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>