Sophie

Sophie

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

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: udata.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>udata.h</h1><a href="udata_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) 1999-2006, 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">*   file name:  udata.h</span>
<a name="l00009"></a>00009 <span class="comment">*   encoding:   US-ASCII</span>
<a name="l00010"></a>00010 <span class="comment">*   tab size:   8 (not used)</span>
<a name="l00011"></a>00011 <span class="comment">*   indentation:4</span>
<a name="l00012"></a>00012 <span class="comment">*</span>
<a name="l00013"></a>00013 <span class="comment">*   created on: 1999oct25</span>
<a name="l00014"></a>00014 <span class="comment">*   created by: Markus W. Scherer</span>
<a name="l00015"></a>00015 <span class="comment">*/</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef __UDATA_H__</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __UDATA_H__</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="utypes_8h.html">unicode/utypes.h</a>"</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <a class="code" href="umachine_8h.html#a703ba54249863378d428540e43315c5">U_CDECL_BEGIN</a>
<a name="l00023"></a>00023 
<a name="l00039"></a>00039 <span class="preprocessor">#ifndef U_HIDE_INTERNAL_API</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00044"></a><a class="code" href="udata_8h.html#709cb174c62d016380f8f323868b7b9c">00044</a> <span class="preprocessor">#define U_TREE_SEPARATOR '-'</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span>
<a name="l00050"></a><a class="code" href="udata_8h.html#eba25bf2afe62c8c4f9b6c1d12d4489b">00050</a> <span class="preprocessor">#define U_TREE_SEPARATOR_STRING "-"</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span>
<a name="l00056"></a><a class="code" href="udata_8h.html#2e46adee7c034a9e7d2ccd8b51dc9993">00056</a> <span class="preprocessor">#define U_TREE_ENTRY_SEP_CHAR '/'</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span>
<a name="l00062"></a><a class="code" href="udata_8h.html#33d72a64ef62df62beba1f2c7ae5d7c5">00062</a> <span class="preprocessor">#define U_TREE_ENTRY_SEP_STRING "/"</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span>
<a name="l00068"></a><a class="code" href="udata_8h.html#38792289236f8b404d0b861619a9fd8d">00068</a> <span class="preprocessor">#define U_ICUDATA_ALIAS "ICUDATA"</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span>
<a name="l00070"></a>00070 <span class="preprocessor">#endif </span><span class="comment">/* U_HIDE_INTERNAL_API */</span>
<a name="l00071"></a>00071 
<a name="l00105"></a><a class="code" href="structUDataInfo.html">00105</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00108"></a><a class="code" href="structUDataInfo.html#c574c73e15ab862e1ff01460e9a28cdf">00108</a>     <a class="code" href="pwin32_8h.html#009defcb88ef0180917f5d2ca68a5c30">uint16_t</a> size;
<a name="l00109"></a>00109 
<a name="l00112"></a><a class="code" href="structUDataInfo.html#b985ed1e91e3f854ff721631577d97c3">00112</a>     <a class="code" href="pwin32_8h.html#009defcb88ef0180917f5d2ca68a5c30">uint16_t</a> reservedWord;
<a name="l00113"></a>00113 
<a name="l00114"></a>00114     <span class="comment">/* platform data properties */</span>
<a name="l00117"></a><a class="code" href="structUDataInfo.html#2f89581c1ad86d73bcd46d9c73973d39">00117</a>     <a class="code" href="pwin32_8h.html#3ebf7c4fcbf17b618a01df30a79859d3">uint8_t</a> isBigEndian;
<a name="l00118"></a>00118 
<a name="l00121"></a><a class="code" href="structUDataInfo.html#cf7b86edb12850b10699a05e74366ae0">00121</a>     <a class="code" href="pwin32_8h.html#3ebf7c4fcbf17b618a01df30a79859d3">uint8_t</a> charsetFamily;
<a name="l00122"></a>00122 
<a name="l00125"></a><a class="code" href="structUDataInfo.html#f5cb5d734c69c92afffcca540edc44cc">00125</a>     <a class="code" href="pwin32_8h.html#3ebf7c4fcbf17b618a01df30a79859d3">uint8_t</a> sizeofUChar;
<a name="l00126"></a>00126 
<a name="l00129"></a><a class="code" href="structUDataInfo.html#89a78a97ea466e61e34d5f0e0ed4df8d">00129</a>     <a class="code" href="pwin32_8h.html#3ebf7c4fcbf17b618a01df30a79859d3">uint8_t</a> reservedByte;
<a name="l00130"></a>00130 
<a name="l00133"></a><a class="code" href="structUDataInfo.html#930e8b9adedc6dc9b25a70bf54f96f38">00133</a>     <a class="code" href="pwin32_8h.html#3ebf7c4fcbf17b618a01df30a79859d3">uint8_t</a> dataFormat[4];
<a name="l00134"></a>00134 
<a name="l00137"></a><a class="code" href="structUDataInfo.html#980b15d5ed1dd7bcad0561e6f619016e">00137</a>     <a class="code" href="pwin32_8h.html#3ebf7c4fcbf17b618a01df30a79859d3">uint8_t</a> formatVersion[4];
<a name="l00138"></a>00138 
<a name="l00141"></a><a class="code" href="structUDataInfo.html#da1b2a726f51a673c91b27a13a02ef1a">00141</a>     <a class="code" href="pwin32_8h.html#3ebf7c4fcbf17b618a01df30a79859d3">uint8_t</a> dataVersion[4];
<a name="l00142"></a>00142 } <a class="code" href="structUDataInfo.html">UDataInfo</a>;
<a name="l00143"></a>00143 
<a name="l00144"></a>00144 <span class="comment">/* API for reading data -----------------------------------------------------*/</span>
<a name="l00145"></a>00145 
<a name="l00150"></a><a class="code" href="udata_8h.html#571aad1e028756dd4181f7066c389027">00150</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="udata_8h.html#571aad1e028756dd4181f7066c389027">UDataMemory</a> <a class="code" href="udata_8h.html#571aad1e028756dd4181f7066c389027">UDataMemory</a>;
<a name="l00151"></a>00151 
<a name="l00165"></a>00165 <span class="keyword">typedef</span> <a class="code" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> <a class="code" href="utypes_8h.html#a01405512c1c5c5309bbe18e09006031">U_CALLCONV</a>
<a name="l00166"></a><a class="code" href="udata_8h.html#0425ff5a3b38abdda71f34f5526837da">00166</a> <a class="code" href="udata_8h.html#0425ff5a3b38abdda71f34f5526837da">UDataMemoryIsAcceptable</a>(<span class="keywordtype">void</span> *<a class="code" href="ustring_8h.html#64dc1cf03a0a74fd8fb861d74185e16e">context</a>,
<a name="l00167"></a>00167                         <span class="keyword">const</span> <span class="keywordtype">char</span> *type, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,
<a name="l00168"></a>00168                         <span class="keyword">const</span> <a class="code" href="structUDataInfo.html">UDataInfo</a> *pInfo);
<a name="l00169"></a>00169 
<a name="l00170"></a>00170 
<a name="l00192"></a>00192 <a class="code" href="umachine_8h.html#827899f75db3ae4cfde9ad08fc2853a0">U_STABLE</a> <a class="code" href="udata_8h.html#571aad1e028756dd4181f7066c389027">UDataMemory</a> * <a class="code" href="platform_8h.html#d665df105e679e1428e48dc5cb90a756">U_EXPORT2</a>
<a name="l00193"></a>00193 <a class="code" href="udata_8h.html#88631c2351f3c5d2bf3b5b083e2ef4d9">udata_open</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keyword">const</span> <span class="keywordtype">char</span> *type, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,
<a name="l00194"></a>00194            <a class="code" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="code" href="ucnv_8h.html#5716258ed7a3d2283a1a0ae26cf1e5e9">pErrorCode</a>);
<a name="l00195"></a>00195 
<a name="l00244"></a>00244 <a class="code" href="umachine_8h.html#827899f75db3ae4cfde9ad08fc2853a0">U_STABLE</a> <a class="code" href="udata_8h.html#571aad1e028756dd4181f7066c389027">UDataMemory</a> * <a class="code" href="platform_8h.html#d665df105e679e1428e48dc5cb90a756">U_EXPORT2</a>
<a name="l00245"></a>00245 <a class="code" href="udata_8h.html#573131b90cfd0fe8522242298c85505e">udata_openChoice</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keyword">const</span> <span class="keywordtype">char</span> *type, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,
<a name="l00246"></a>00246                  <a class="code" href="udata_8h.html#0425ff5a3b38abdda71f34f5526837da">UDataMemoryIsAcceptable</a> *isAcceptable, <span class="keywordtype">void</span> *<a class="code" href="ustring_8h.html#64dc1cf03a0a74fd8fb861d74185e16e">context</a>,
<a name="l00247"></a>00247                  <a class="code" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *<a class="code" href="ucnv_8h.html#5716258ed7a3d2283a1a0ae26cf1e5e9">pErrorCode</a>);
<a name="l00248"></a>00248 
<a name="l00256"></a>00256 <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="l00257"></a>00257 <a class="code" href="udata_8h.html#7363c7861412a78128272e2bf002aa27">udata_close</a>(<a class="code" href="udata_8h.html#571aad1e028756dd4181f7066c389027">UDataMemory</a> *pData);
<a name="l00258"></a>00258 
<a name="l00265"></a>00265 <a class="code" href="umachine_8h.html#827899f75db3ae4cfde9ad08fc2853a0">U_STABLE</a> <span class="keyword">const</span> <span class="keywordtype">void</span> * <a class="code" href="platform_8h.html#d665df105e679e1428e48dc5cb90a756">U_EXPORT2</a>
<a name="l00266"></a>00266 <a class="code" href="udata_8h.html#00f7d6c234a8ef64eb6eb5848874a658">udata_getMemory</a>(<a class="code" href="udata_8h.html#571aad1e028756dd4181f7066c389027">UDataMemory</a> *pData);
<a name="l00267"></a>00267 
<a name="l00286"></a>00286 <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="l00287"></a>00287 <a class="code" href="udata_8h.html#ca99f69b66e4986d838ee3c735957faf">udata_getInfo</a>(<a class="code" href="udata_8h.html#571aad1e028756dd4181f7066c389027">UDataMemory</a> *pData, <a class="code" href="structUDataInfo.html">UDataInfo</a> *pInfo);
<a name="l00288"></a>00288 
<a name="l00323"></a>00323 <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="l00324"></a>00324 <a class="code" href="udata_8h.html#f016e7ff8ee4d37835a2fbdbdbe3822c">udata_setCommonData</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *data, <a class="code" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *err);
<a name="l00325"></a>00325 
<a name="l00326"></a>00326 
<a name="l00351"></a>00351 <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="l00352"></a>00352 <a class="code" href="udata_8h.html#82e8e372e5a63e406885662d26ec2e15">udata_setAppData</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *packageName, <span class="keyword">const</span> <span class="keywordtype">void</span> *data, <a class="code" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *err);
<a name="l00353"></a>00353 
<a name="l00359"></a><a class="code" href="udata_8h.html#2de18864c069cf39f42c1beb960996a4">00359</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="udata_8h.html#2de18864c069cf39f42c1beb960996a4">UDataFileAccess</a> {
<a name="l00361"></a>00361     <a class="code" href="udata_8h.html#2de18864c069cf39f42c1beb960996a47b2baf5af14983e1313ec01d281458bf">UDATA_NO_FILES</a>,
<a name="l00363"></a>00363     <a class="code" href="udata_8h.html#2de18864c069cf39f42c1beb960996a461beaa4aab31a571e72c1e1be1d1b7d2">UDATA_ONLY_PACKAGES</a>,
<a name="l00366"></a>00366     <a class="code" href="udata_8h.html#2de18864c069cf39f42c1beb960996a481de2a0582d9fa5ab84443241b0f139e">UDATA_PACKAGES_FIRST</a>,
<a name="l00368"></a>00368     <a class="code" href="udata_8h.html#2de18864c069cf39f42c1beb960996a47be5fbe88bddc1b7b5975a61202418f9">UDATA_FILES_FIRST</a>,
<a name="l00370"></a>00370     <a class="code" href="udata_8h.html#2de18864c069cf39f42c1beb960996a45f3a5f858be7a305bcdbb84e016b3227">UDATA_DEFAULT_ACCESS</a> = UDATA_FILES_FIRST,
<a name="l00371"></a>00371     UDATA_FILE_ACCESS_COUNT
<a name="l00372"></a>00372 } <a class="code" href="udata_8h.html#2de18864c069cf39f42c1beb960996a4">UDataFileAccess</a>;
<a name="l00373"></a>00373 
<a name="l00384"></a>00384 <a class="code" href="umachine_8h.html#a9aaea1235ae14aad061145359d9cbba">U_DRAFT</a> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#d665df105e679e1428e48dc5cb90a756">U_EXPORT2</a>
<a name="l00385"></a>00385 <a class="code" href="udata_8h.html#a1c5af884d58a1d4802856d903ef8eb6">udata_setFileAccess</a>(<a class="code" href="udata_8h.html#2de18864c069cf39f42c1beb960996a4">UDataFileAccess</a> access, <a class="code" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *status);
<a name="l00386"></a>00386 
<a name="l00387"></a>00387 <a class="code" href="umachine_8h.html#8a2b1510fe42ab4dceccb37e02484c77">U_CDECL_END</a>
<a name="l00388"></a>00388 
<a name="l00389"></a>00389 <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>