<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>ICU 4.8.1.1: uclean.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">ICU 4.8.1.1  <span id="projectnumber">4.8.1.1</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</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> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_bdd9a5d540de89e9fe90efdfc6973a4f.html">common</a></li><li class="navelem"><a class="el" href="dir_f59c6450ff718ff1b085cfd1c36acbd7.html">unicode</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">uclean.h</div> </div> </div><!--header--> <div class="contents"> <a href="uclean_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">******************************************************************************</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">* *</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">* Copyright (C) 2001-2009, International Business Machines *</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">* Corporation and others. All Rights Reserved. *</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">* *</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">******************************************************************************</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">* file name: uclean.h</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">* encoding: US-ASCII</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">* tab size: 8 (not used)</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">* indentation:4</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">*</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">* created on: 2001July05</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">* created by: George Rhoten</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">*/</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#ifndef __UCLEAN_H__</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor"></span><span class="preprocessor">#define __UCLEAN_H__</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="utypes_8h.html" title="Basic definitions for ICU, for both C and C++ APIs.">unicode/utypes.h</a>"</span></div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> </div> <div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <a class="code" href="uclean_8h.html#ab6a4215b45b2162889aa1ff01e491d4c" title="Initialize ICU.">u_init</a>(<a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div> <div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> </div> <div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <a class="code" href="uclean_8h.html#a93f27d0ddc7c196a1da864763f2d8920" title="Clean up the system resources, such as allocated memory or open files, used in all ICU libraries...">u_cleanup</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div> <div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div> <div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div> <div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div> <div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="uclean_8h.html#af125d56147c708c2d8ecc5327449c41d"> 113</a></span> <span class="keyword">typedef</span> <span class="keywordtype">void</span> *<a class="code" href="uclean_8h.html#af125d56147c708c2d8ecc5327449c41d" title="An opaque pointer type that represents an ICU mutex.">UMTX</a>;</div> <div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div> <div class="line"><a name="l00131"></a><span class="lineno"><a class="code" href="uclean_8h.html#a302ac3ea859a593dea50f9a1b06ce5b1"> 131</a></span> <span class="keyword">typedef</span> <span class="keywordtype">void</span> <a class="code" href="utypes_8h.html#a1fae478cb5a46c7e4a0673d267626696" title="Similar to U_CDECL_BEGIN/U_CDECL_END, this qualifier is necessary in callback function typedefs to ma...">U_CALLCONV</a> <a class="code" href="uclean_8h.html#a302ac3ea859a593dea50f9a1b06ce5b1" title="Function Pointer type for a user supplied mutex initialization function.">UMtxInitFn</a> (<span class="keyword">const</span> <span class="keywordtype">void</span> *context, <a class="code" href="uclean_8h.html#af125d56147c708c2d8ecc5327449c41d" title="An opaque pointer type that represents an ICU mutex.">UMTX</a> *mutex, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>* status);</div> <div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div> <div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div> <div class="line"><a name="l00143"></a><span class="lineno"><a class="code" href="uclean_8h.html#a67a2314f542b9f495ef0b2ac1cfd5192"> 143</a></span> <span class="keyword">typedef</span> <span class="keywordtype">void</span> <a class="code" href="utypes_8h.html#a1fae478cb5a46c7e4a0673d267626696" title="Similar to U_CDECL_BEGIN/U_CDECL_END, this qualifier is necessary in callback function typedefs to ma...">U_CALLCONV</a> <a class="code" href="uclean_8h.html#a67a2314f542b9f495ef0b2ac1cfd5192" title="Function Pointer type for a user supplied mutex functions.">UMtxFn</a> (<span class="keyword">const</span> <span class="keywordtype">void</span> *context, <a class="code" href="uclean_8h.html#af125d56147c708c2d8ecc5327449c41d" title="An opaque pointer type that represents an ICU mutex.">UMTX</a> *mutex);</div> <div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div> <div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div> <div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> </div> <div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <a class="code" href="uclean_8h.html#ad286bdc5cbaf91e6b6e8f9c565455ec0" title="Set the functions that ICU will use for mutex operations Use of this function is optional; by default...">u_setMutexFunctions</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *context, <a class="code" href="uclean_8h.html#a302ac3ea859a593dea50f9a1b06ce5b1" title="Function Pointer type for a user supplied mutex initialization function.">UMtxInitFn</a> *init, <a class="code" href="uclean_8h.html#a67a2314f542b9f495ef0b2ac1cfd5192" title="Function Pointer type for a user supplied mutex functions.">UMtxFn</a> *destroy, <a class="code" href="uclean_8h.html#a67a2314f542b9f495ef0b2ac1cfd5192" title="Function Pointer type for a user supplied mutex functions.">UMtxFn</a> *lock, <a class="code" href="uclean_8h.html#a67a2314f542b9f495ef0b2ac1cfd5192" title="Function Pointer type for a user supplied mutex functions.">UMtxFn</a> *unlock,</div> <div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div> <div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div> <div class="line"><a name="l00178"></a><span class="lineno"><a class="code" href="uclean_8h.html#a21713ef0c8987c243f315dab6db8e2b8"> 178</a></span> <span class="keyword">typedef</span> int32_t <a class="code" href="utypes_8h.html#a1fae478cb5a46c7e4a0673d267626696" title="Similar to U_CDECL_BEGIN/U_CDECL_END, this qualifier is necessary in callback function typedefs to ma...">U_CALLCONV</a> <a class="code" href="uclean_8h.html#a21713ef0c8987c243f315dab6db8e2b8" title="Pointer type for a user supplied atomic increment or decrement function.">UMtxAtomicFn</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *context, int32_t *p);</div> <div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div> <div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> </div> <div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <a class="code" href="uclean_8h.html#a677b75b566af2a41202e255262ff38c3" title="Set the functions that ICU will use for atomic increment and decrement of int32_t values...">u_setAtomicIncDecFunctions</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *context, <a class="code" href="uclean_8h.html#a21713ef0c8987c243f315dab6db8e2b8" title="Pointer type for a user supplied atomic increment or decrement function.">UMtxAtomicFn</a> *inc, <a class="code" href="uclean_8h.html#a21713ef0c8987c243f315dab6db8e2b8" title="Pointer type for a user supplied atomic increment or decrement function.">UMtxAtomicFn</a> *dec,</div> <div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00198"></a><span class="lineno"> 198</span> </div> <div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div> <div class="line"><a name="l00200"></a><span class="lineno"> 200</span> </div> <div class="line"><a name="l00209"></a><span class="lineno"><a class="code" href="uclean_8h.html#a7a7b058f29daf7fcac9a5c27584b1710"> 209</a></span> <span class="keyword">typedef</span> <span class="keywordtype">void</span> *<a class="code" href="utypes_8h.html#a1fae478cb5a46c7e4a0673d267626696" title="Similar to U_CDECL_BEGIN/U_CDECL_END, this qualifier is necessary in callback function typedefs to ma...">U_CALLCONV</a> <a class="code" href="uclean_8h.html#a7a7b058f29daf7fcac9a5c27584b1710" title="Pointer type for a user supplied memory allocation function.">UMemAllocFn</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *context, <span class="keywordtype">size_t</span> size);</div> <div class="line"><a name="l00218"></a><span class="lineno"><a class="code" href="uclean_8h.html#a1b6b46b156cc0874de4c1f9ae202e6e7"> 218</a></span> <span class="keyword">typedef</span> <span class="keywordtype">void</span> *<a class="code" href="utypes_8h.html#a1fae478cb5a46c7e4a0673d267626696" title="Similar to U_CDECL_BEGIN/U_CDECL_END, this qualifier is necessary in callback function typedefs to ma...">U_CALLCONV</a> <a class="code" href="uclean_8h.html#a1b6b46b156cc0874de4c1f9ae202e6e7" title="Pointer type for a user supplied memory re-allocation function.">UMemReallocFn</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *context, <span class="keywordtype">void</span> *mem, <span class="keywordtype">size_t</span> size);</div> <div class="line"><a name="l00229"></a><span class="lineno"><a class="code" href="uclean_8h.html#a0ef0908b72449d65c915e6c3d173886a"> 229</a></span> <span class="keyword">typedef</span> <span class="keywordtype">void</span> <a class="code" href="utypes_8h.html#a1fae478cb5a46c7e4a0673d267626696" title="Similar to U_CDECL_BEGIN/U_CDECL_END, this qualifier is necessary in callback function typedefs to ma...">U_CALLCONV</a> <a class="code" href="uclean_8h.html#a0ef0908b72449d65c915e6c3d173886a" title="Pointer type for a user supplied memory free function.">UMemFreeFn</a> (<span class="keyword">const</span> <span class="keywordtype">void</span> *context, <span class="keywordtype">void</span> *mem);</div> <div class="line"><a name="l00230"></a><span class="lineno"> 230</span> </div> <div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> </div> <div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <a class="code" href="uclean_8h.html#a5dea766c5e726833400dc0ee24a2bc6a" title="Set the functions that ICU will use for memory allocation.">u_setMemoryFunctions</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *context, <a class="code" href="uclean_8h.html#a7a7b058f29daf7fcac9a5c27584b1710" title="Pointer type for a user supplied memory allocation function.">UMemAllocFn</a> *a, <a class="code" href="uclean_8h.html#a1b6b46b156cc0874de4c1f9ae202e6e7" title="Pointer type for a user supplied memory re-allocation function.">UMemReallocFn</a> *r, <a class="code" href="uclean_8h.html#a0ef0908b72449d65c915e6c3d173886a" title="Pointer type for a user supplied memory free function.">UMemFreeFn</a> *f, </div> <div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00250"></a><span class="lineno"> 250</span> </div> <div class="line"><a name="l00251"></a><span class="lineno"> 251</span> <span class="preprocessor">#endif</span></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.1.1 </small></address> </body> </html>