Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 34ae14235711d1471f043ac894a061f9 > files > 315

libicu-doc-3.6-5.16.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ICU 3.6: putil.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul></div>
<h1>putil.h</h1><a href="putil_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">******************************************************************************</span>
<a name="l00003"></a>00003 <span class="comment">*</span>
<a name="l00004"></a>00004 <span class="comment">*   Copyright (C) 1997-2005, International Business Machines</span>
<a name="l00005"></a>00005 <span class="comment">*   Corporation and others.  All Rights Reserved.</span>
<a name="l00006"></a>00006 <span class="comment">*</span>
<a name="l00007"></a>00007 <span class="comment">******************************************************************************</span>
<a name="l00008"></a>00008 <span class="comment">*</span>
<a name="l00009"></a>00009 <span class="comment">*  FILE NAME : putil.h</span>
<a name="l00010"></a>00010 <span class="comment">*</span>
<a name="l00011"></a>00011 <span class="comment">*   Date        Name        Description</span>
<a name="l00012"></a>00012 <span class="comment">*   05/14/98    nos         Creation (content moved here from utypes.h).</span>
<a name="l00013"></a>00013 <span class="comment">*   06/17/99    erm         Added IEEE_754</span>
<a name="l00014"></a>00014 <span class="comment">*   07/22/98    stephen     Added IEEEremainder, max, min, trunc</span>
<a name="l00015"></a>00015 <span class="comment">*   08/13/98    stephen     Added isNegativeInfinity, isPositiveInfinity</span>
<a name="l00016"></a>00016 <span class="comment">*   08/24/98    stephen     Added longBitsFromDouble</span>
<a name="l00017"></a>00017 <span class="comment">*   03/02/99    stephen     Removed openFile().  Added AS400 support.</span>
<a name="l00018"></a>00018 <span class="comment">*   04/15/99    stephen     Converted to C</span>
<a name="l00019"></a>00019 <span class="comment">*   11/15/99    helena      Integrated S/390 changes for IEEE support.</span>
<a name="l00020"></a>00020 <span class="comment">*   01/11/00    helena      Added u_getVersion.</span>
<a name="l00021"></a>00021 <span class="comment">******************************************************************************</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef PUTIL_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define PUTIL_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="utypes_8h.html">unicode/utypes.h</a>"</span>
<a name="l00033"></a>00033 <span class="comment">/* Define this to 1 if your platform supports IEEE 754 floating point,</span>
<a name="l00034"></a>00034 <span class="comment">   to 0 if it does not. */</span>
<a name="l00035"></a>00035 <span class="preprocessor">#ifndef IEEE_754</span>
<a name="l00036"></a><a class="code" href="putil_8h.html#ff0832db73c1f3a4ad67ede3f9360964">00036</a> <span class="preprocessor"></span><span class="preprocessor">#   define IEEE_754 1</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00039"></a>00039 <span class="comment">/*==========================================================================*/</span>
<a name="l00040"></a>00040 <span class="comment">/* Platform utilities                                                       */</span>
<a name="l00041"></a>00041 <span class="comment">/*==========================================================================*/</span>
<a name="l00042"></a>00042 
<a name="l00069"></a>00069 <a class="code" href="umachine_8h.html#827899f75db3ae4cfde9ad08fc2853a0">U_STABLE</a> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="platform_8h.html#d665df105e679e1428e48dc5cb90a756">U_EXPORT2</a> <a class="code" href="putil_8h.html#fcb32663df26e03823b6971c55a213ac">u_getDataDirectory</a>(<span class="keywordtype">void</span>);
<a name="l00070"></a>00070 
<a name="l00090"></a>00090 <a class="code" href="umachine_8h.html#827899f75db3ae4cfde9ad08fc2853a0">U_STABLE</a> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#d665df105e679e1428e48dc5cb90a756">U_EXPORT2</a> <a class="code" href="putil_8h.html#62cc3492f2342dbb8f57296d7cecd3f0">u_setDataDirectory</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *directory);
<a name="l00091"></a>00091 
<a name="l00100"></a>00100 <a class="code" href="umachine_8h.html#bad861aba89c68a937bb4e632cc84e03">U_INTERNAL</a> <span class="keyword">const</span> <span class="keywordtype">char</span>*  <a class="code" href="platform_8h.html#d665df105e679e1428e48dc5cb90a756">U_EXPORT2</a> <a class="code" href="putil_8h.html#e8769c9385cf2d6b8762d569c32cc512">uprv_getDefaultCodepage</a>(<span class="keywordtype">void</span>);
<a name="l00101"></a>00101 
<a name="l00111"></a>00111 <a class="code" href="umachine_8h.html#bad861aba89c68a937bb4e632cc84e03">U_INTERNAL</a> <span class="keyword">const</span> <span class="keywordtype">char</span>*  <a class="code" href="platform_8h.html#d665df105e679e1428e48dc5cb90a756">U_EXPORT2</a> <a class="code" href="putil_8h.html#0b0243a6ff28430512a48c5c5dcf89a2">uprv_getDefaultLocaleID</a>(<span class="keywordtype">void</span>);
<a name="l00112"></a>00112 
<a name="l00118"></a>00118 <span class="preprocessor">#ifdef XP_MAC</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span><span class="preprocessor">#   define U_FILE_SEP_CHAR ':'</span>
<a name="l00120"></a>00120 <span class="preprocessor"></span><span class="preprocessor">#   define U_FILE_ALT_SEP_CHAR ':'</span>
<a name="l00121"></a>00121 <span class="preprocessor"></span><span class="preprocessor">#   define U_PATH_SEP_CHAR ';'</span>
<a name="l00122"></a>00122 <span class="preprocessor"></span><span class="preprocessor">#   define U_FILE_SEP_STRING ":"</span>
<a name="l00123"></a>00123 <span class="preprocessor"></span><span class="preprocessor">#   define U_FILE_ALT_SEP_STRING ":"</span>
<a name="l00124"></a>00124 <span class="preprocessor"></span><span class="preprocessor">#   define U_PATH_SEP_STRING ";"</span>
<a name="l00125"></a>00125 <span class="preprocessor"></span><span class="preprocessor">#elif defined(U_WINDOWS)</span>
<a name="l00126"></a>00126 <span class="preprocessor"></span><span class="preprocessor">#   define U_FILE_SEP_CHAR '\\'</span>
<a name="l00127"></a>00127 <span class="preprocessor"></span><span class="preprocessor">#   define U_FILE_ALT_SEP_CHAR '/'</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span><span class="preprocessor">#   define U_PATH_SEP_CHAR ';'</span>
<a name="l00129"></a>00129 <span class="preprocessor"></span><span class="preprocessor">#   define U_FILE_SEP_STRING "\\"</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span><span class="preprocessor">#   define U_FILE_ALT_SEP_STRING "/"</span>
<a name="l00131"></a>00131 <span class="preprocessor"></span><span class="preprocessor">#   define U_PATH_SEP_STRING ";"</span>
<a name="l00132"></a>00132 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00133"></a><a class="code" href="putil_8h.html#6970542c7650516dbe1e6217029a3993">00133</a> <span class="preprocessor"></span><span class="preprocessor">#   define U_FILE_SEP_CHAR '/'</span>
<a name="l00134"></a><a class="code" href="putil_8h.html#114c2d6d9b25b2223d89a28566749a11">00134</a> <span class="preprocessor"></span><span class="preprocessor">#   define U_FILE_ALT_SEP_CHAR '/'</span>
<a name="l00135"></a><a class="code" href="putil_8h.html#ce0124279808029ec579ff465c11114f">00135</a> <span class="preprocessor"></span><span class="preprocessor">#   define U_PATH_SEP_CHAR ':'</span>
<a name="l00136"></a><a class="code" href="putil_8h.html#1b77d2e1ae42bf0f11563b09a86db389">00136</a> <span class="preprocessor"></span><span class="preprocessor">#   define U_FILE_SEP_STRING "/"</span>
<a name="l00137"></a><a class="code" href="putil_8h.html#5e16b8a448f1c73b8c6e2c268e45a50d">00137</a> <span class="preprocessor"></span><span class="preprocessor">#   define U_FILE_ALT_SEP_STRING "/"</span>
<a name="l00138"></a><a class="code" href="putil_8h.html#36b0b2adb8fa8a779349c1dee87a4d56">00138</a> <span class="preprocessor"></span><span class="preprocessor">#   define U_PATH_SEP_STRING ":"</span>
<a name="l00139"></a>00139 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00140"></a>00140 <span class="preprocessor"></span>
<a name="l00159"></a>00159 <a class="code" href="umachine_8h.html#827899f75db3ae4cfde9ad08fc2853a0">U_STABLE</a> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#d665df105e679e1428e48dc5cb90a756">U_EXPORT2</a>
<a name="l00160"></a>00160 <a class="code" href="putil_8h.html#03379fe08a474116020299efc0506af5">u_charsToUChars</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *cs, <a class="code" href="umachine_8h.html#a7213b402d772584553f6e614109e6e4">UChar</a> *us, <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> <a class="code" href="ucnv_8h.html#c14f4e493302a219114039668cd5c7d1">length</a>);
<a name="l00161"></a>00161 
<a name="l00181"></a>00181 <a class="code" href="umachine_8h.html#827899f75db3ae4cfde9ad08fc2853a0">U_STABLE</a> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#d665df105e679e1428e48dc5cb90a756">U_EXPORT2</a>
<a name="l00182"></a>00182 <a class="code" href="putil_8h.html#1ce59871510f2ed887aecea7407d4c2f">u_UCharsToChars</a>(<span class="keyword">const</span> <a class="code" href="umachine_8h.html#a7213b402d772584553f6e614109e6e4">UChar</a> *us, <span class="keywordtype">char</span> *cs, <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> <a class="code" href="ucnv_8h.html#c14f4e493302a219114039668cd5c7d1">length</a>);
<a name="l00183"></a>00183 
<a name="l00184"></a>00184 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Dec 13 17:29:51 2011 for ICU 3.6 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>