Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-release > by-pkgid > 3a4e91bde08970529a0aa07935652fe8 > files > 831

icu-doc-58.2-3.mga6.noarch.rpm

<!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"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ICU 58.2: putil.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="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 id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ICU 58.2
   &#160;<span id="projectnumber">58.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b2f33c71d4aa5e7af42a1ca61ff5af1b.html">source</a></li><li class="navelem"><a class="el" href="dir_30087b5439e04c85304dbcf15650710b.html">common</a></li><li class="navelem"><a class="el" href="dir_8bf9c54ed6ca2fd1e2117fb037e4ad06.html">unicode</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">putil.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="putil_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>&#160;<span class="comment">// Copyright (C) 2016 and later: Unicode, Inc. and others.</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// License &amp; terms of use: http://www.unicode.org/copyright.html</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">******************************************************************************</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">*</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">*   Copyright (C) 1997-2014, International Business Machines</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">*   Corporation and others.  All Rights Reserved.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">*</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">******************************************************************************</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">*</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">*  FILE NAME : putil.h</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">*</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">*   Date        Name        Description</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">*   05/14/98    nos         Creation (content moved here from utypes.h).</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">*   06/17/99    erm         Added IEEE_754</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">*   07/22/98    stephen     Added IEEEremainder, max, min, trunc</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">*   08/13/98    stephen     Added isNegativeInfinity, isPositiveInfinity</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">*   08/24/98    stephen     Added longBitsFromDouble</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">*   03/02/99    stephen     Removed openFile().  Added AS400 support.</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">*   04/15/99    stephen     Converted to C</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">*   11/15/99    helena      Integrated S/390 changes for IEEE support.</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">*   01/11/00    helena      Added u_getVersion.</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">******************************************************************************</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#ifndef PUTIL_H</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#define PUTIL_H</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="utypes_8h.html">unicode/utypes.h</a>&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment">/*==========================================================================*/</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">/* Platform utilities                                                       */</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">/*==========================================================================*/</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98">U_STABLE</a> <span class="keyword">const</span> <span class="keywordtype">char</span>* U_EXPORT2 <a class="code" href="putil_8h.html#a191ab876d121aff107437e6876090647">u_getDataDirectory</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98">U_STABLE</a> <span class="keywordtype">void</span> U_EXPORT2 <a class="code" href="putil_8h.html#ab03241e29fc619a4b3f7737e98aa08ef">u_setDataDirectory</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *directory);</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="preprocessor">#ifndef U_HIDE_INTERNAL_API</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<a class="code" href="umachine_8h.html#a161dba69f4e479c3626793efc42f94ba">U_INTERNAL</a> <span class="keyword">const</span> <span class="keywordtype">char</span> * U_EXPORT2 <a class="code" href="putil_8h.html#af6eac5e399d3800511d01e4d16b98e7d">u_getTimeZoneFilesDirectory</a>(<a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *status);</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<a class="code" href="umachine_8h.html#a161dba69f4e479c3626793efc42f94ba">U_INTERNAL</a> <span class="keywordtype">void</span> U_EXPORT2 <a class="code" href="putil_8h.html#a19e5b4f373700b166665eb2a9e866363">u_setTimeZoneFilesDirectory</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *path, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *status);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="preprocessor">#endif  </span><span class="comment">/* U_HIDE_INTERNAL_API */</span><span class="preprocessor"></span></div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="preprocessor">#if U_PLATFORM_USES_ONLY_WIN32_API</span></div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">#   define U_FILE_SEP_CHAR &#39;\\&#39;</span></div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="preprocessor">#   define U_FILE_ALT_SEP_CHAR &#39;/&#39;</span></div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="preprocessor">#   define U_PATH_SEP_CHAR &#39;;&#39;</span></div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="preprocessor">#   define U_FILE_SEP_STRING &quot;\\&quot;</span></div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="preprocessor">#   define U_FILE_ALT_SEP_STRING &quot;/&quot;</span></div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="preprocessor">#   define U_PATH_SEP_STRING &quot;;&quot;</span></div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="putil_8h.html#a4d41826cae0108d7ce4c480c733631c0">  130</a></span>&#160;<span class="preprocessor">#   define U_FILE_SEP_CHAR &#39;/&#39;</span></div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="putil_8h.html#a86281839c42e8f044313eed5f1417d5a">  131</a></span>&#160;<span class="preprocessor">#   define U_FILE_ALT_SEP_CHAR &#39;/&#39;</span></div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="putil_8h.html#a5e053f4748f1e82d84c3bac48b3ccb10">  132</a></span>&#160;<span class="preprocessor">#   define U_PATH_SEP_CHAR &#39;:&#39;</span></div><div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="putil_8h.html#a957d91eea919db7dd317dbaddd4ba090">  133</a></span>&#160;<span class="preprocessor">#   define U_FILE_SEP_STRING &quot;/&quot;</span></div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="putil_8h.html#aea13f8d98aa39d79cfcf3b9007879139">  134</a></span>&#160;<span class="preprocessor">#   define U_FILE_ALT_SEP_STRING &quot;/&quot;</span></div><div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="putil_8h.html#a91afb504ca1d147907144a873fabb3f9">  135</a></span>&#160;<span class="preprocessor">#   define U_PATH_SEP_STRING &quot;:&quot;</span></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98">U_STABLE</a> <span class="keywordtype">void</span> U_EXPORT2</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<a class="code" href="putil_8h.html#ad2ba2f88b01ea212f2bfbe2c6b0854a7">u_charsToUChars</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *cs, <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *us, int32_t length);</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98">U_STABLE</a> <span class="keywordtype">void</span> U_EXPORT2</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<a class="code" href="putil_8h.html#a105f24a806d2c849064db0a37ed84a22">u_UCharsToChars</a>(<span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *us, <span class="keywordtype">char</span> *cs, int32_t length);</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="putil_8h_html_a191ab876d121aff107437e6876090647"><div class="ttname"><a href="putil_8h.html#a191ab876d121aff107437e6876090647">u_getDataDirectory</a></div><div class="ttdeci">const char * u_getDataDirectory(void)</div><div class="ttdoc">Platform utilities isolates the platform dependencies of the libarary. </div></div>
<div class="ttc" id="putil_8h_html_ad2ba2f88b01ea212f2bfbe2c6b0854a7"><div class="ttname"><a href="putil_8h.html#ad2ba2f88b01ea212f2bfbe2c6b0854a7">u_charsToUChars</a></div><div class="ttdeci">void u_charsToUChars(const char *cs, UChar *us, int32_t length)</div><div class="ttdoc">Convert char characters to UChar characters. </div></div>
<div class="ttc" id="umachine_8h_html_a161dba69f4e479c3626793efc42f94ba"><div class="ttname"><a href="umachine_8h.html#a161dba69f4e479c3626793efc42f94ba">U_INTERNAL</a></div><div class="ttdeci">#define U_INTERNAL</div><div class="ttdoc">This is used to declare a function as an internal ICU C API. </div><div class="ttdef"><b>Definition:</b> <a href="umachine_8h_source.html#l00142">umachine.h:142</a></div></div>
<div class="ttc" id="putil_8h_html_a105f24a806d2c849064db0a37ed84a22"><div class="ttname"><a href="putil_8h.html#a105f24a806d2c849064db0a37ed84a22">u_UCharsToChars</a></div><div class="ttdeci">void u_UCharsToChars(const UChar *us, char *cs, int32_t length)</div><div class="ttdoc">Convert UChar characters to char characters. </div></div>
<div class="ttc" id="putil_8h_html_ab03241e29fc619a4b3f7737e98aa08ef"><div class="ttname"><a href="putil_8h.html#ab03241e29fc619a4b3f7737e98aa08ef">u_setDataDirectory</a></div><div class="ttdeci">void u_setDataDirectory(const char *directory)</div><div class="ttdoc">Set the ICU data directory. </div></div>
<div class="ttc" id="umachine_8h_html_a6bb9fad572d65b305324ef288165e2ac"><div class="ttname"><a href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a></div><div class="ttdeci">uint16_t UChar</div><div class="ttdoc">Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...</div><div class="ttdef"><b>Definition:</b> <a href="umachine_8h_source.html#l00337">umachine.h:337</a></div></div>
<div class="ttc" id="utypes_8h_html_a3343c1c8a8377277046774691c98d78c"><div class="ttname"><a href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a></div><div class="ttdeci">UErrorCode</div><div class="ttdoc">Error code to replace exception handling, so that the code is compatible with all C++ compilers...</div><div class="ttdef"><b>Definition:</b> <a href="utypes_8h_source.html#l00396">utypes.h:396</a></div></div>
<div class="ttc" id="putil_8h_html_a19e5b4f373700b166665eb2a9e866363"><div class="ttname"><a href="putil_8h.html#a19e5b4f373700b166665eb2a9e866363">u_setTimeZoneFilesDirectory</a></div><div class="ttdeci">void u_setTimeZoneFilesDirectory(const char *path, UErrorCode *status)</div><div class="ttdoc">Set the time zone files override directory. </div></div>
<div class="ttc" id="utypes_8h_html"><div class="ttname"><a href="utypes_8h.html">utypes.h</a></div><div class="ttdoc">Basic definitions for ICU, for both C and C++ APIs. </div></div>
<div class="ttc" id="putil_8h_html_af6eac5e399d3800511d01e4d16b98e7d"><div class="ttname"><a href="putil_8h.html#af6eac5e399d3800511d01e4d16b98e7d">u_getTimeZoneFilesDirectory</a></div><div class="ttdeci">const char * u_getTimeZoneFilesDirectory(UErrorCode *status)</div><div class="ttdoc">Return the time zone files override directory, or an empty string if no directory was specified...</div></div>
<div class="ttc" id="umachine_8h_html_af3e3799716eaa41e3f49c7bf18c62b98"><div class="ttname"><a href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98">U_STABLE</a></div><div class="ttdeci">#define U_STABLE</div><div class="ttdoc">This is used to declare a function as a stable public ICU C API. </div><div class="ttdef"><b>Definition:</b> <a href="umachine_8h_source.html#l00134">umachine.h:134</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>