Sophie

Sophie

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

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: udata.h File Reference</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="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">udata.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>C API: Data loading interface.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="utypes_8h_source.html">unicode/utypes.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="localpointer_8h_source.html">unicode/localpointer.h</a>&quot;</code><br />
</div>
<p><a href="udata_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structUDataInfo.html">UDataInfo</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="structUDataInfo.html" title="UDataInfo contains the properties about the requested data. ">UDataInfo</a> contains the properties about the requested data.  <a href="structUDataInfo.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceicu"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceicu.html">icu</a></td></tr>
<tr class="memdesc:namespaceicu"><td class="mdescLeft">&#160;</td><td class="mdescRight">File <a class="el" href="coll_8h.html" title="C++ API: Collation Service. ">coll.h</a>. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a3d33a3798f0bcb7a46ae662fbc4e4819"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#a3d33a3798f0bcb7a46ae662fbc4e4819">U_TREE_SEPARATOR</a>&#160;&#160;&#160;'-'</td></tr>
<tr class="memdesc:a3d33a3798f0bcb7a46ae662fbc4e4819"><td class="mdescLeft">&#160;</td><td class="mdescRight">Character used to separate package names from tree names.  <a href="#a3d33a3798f0bcb7a46ae662fbc4e4819">More...</a><br /></td></tr>
<tr class="separator:a3d33a3798f0bcb7a46ae662fbc4e4819"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bcfcbd6c1d0a694ae00532cd2d38fa9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#a4bcfcbd6c1d0a694ae00532cd2d38fa9">U_TREE_SEPARATOR_STRING</a>&#160;&#160;&#160;&quot;-&quot;</td></tr>
<tr class="memdesc:a4bcfcbd6c1d0a694ae00532cd2d38fa9"><td class="mdescLeft">&#160;</td><td class="mdescRight">String used to separate package names from tree names.  <a href="#a4bcfcbd6c1d0a694ae00532cd2d38fa9">More...</a><br /></td></tr>
<tr class="separator:a4bcfcbd6c1d0a694ae00532cd2d38fa9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8be002e64f35e45a4f8184ff8b78f557"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#a8be002e64f35e45a4f8184ff8b78f557">U_TREE_ENTRY_SEP_CHAR</a>&#160;&#160;&#160;'/'</td></tr>
<tr class="memdesc:a8be002e64f35e45a4f8184ff8b78f557"><td class="mdescLeft">&#160;</td><td class="mdescRight">Character used to separate parts of entry names.  <a href="#a8be002e64f35e45a4f8184ff8b78f557">More...</a><br /></td></tr>
<tr class="separator:a8be002e64f35e45a4f8184ff8b78f557"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8c1adee7a40c51ee83c24ef769aed2b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#ab8c1adee7a40c51ee83c24ef769aed2b">U_TREE_ENTRY_SEP_STRING</a>&#160;&#160;&#160;&quot;/&quot;</td></tr>
<tr class="memdesc:ab8c1adee7a40c51ee83c24ef769aed2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">String used to separate parts of entry names.  <a href="#ab8c1adee7a40c51ee83c24ef769aed2b">More...</a><br /></td></tr>
<tr class="separator:ab8c1adee7a40c51ee83c24ef769aed2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1f62204384ab648418f081f2f80cefe"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#ac1f62204384ab648418f081f2f80cefe">U_ICUDATA_ALIAS</a>&#160;&#160;&#160;&quot;ICUDATA&quot;</td></tr>
<tr class="memdesc:ac1f62204384ab648418f081f2f80cefe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Alias for standard ICU data.  <a href="#ac1f62204384ab648418f081f2f80cefe">More...</a><br /></td></tr>
<tr class="separator:ac1f62204384ab648418f081f2f80cefe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:acffec83601fda29bd4750b24f829f56b"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="udata_8h.html#acffec83601fda29bd4750b24f829f56b">UDataMemory</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#acffec83601fda29bd4750b24f829f56b">UDataMemory</a></td></tr>
<tr class="memdesc:acffec83601fda29bd4750b24f829f56b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forward declaration of the data memory type.  <a href="#acffec83601fda29bd4750b24f829f56b">More...</a><br /></td></tr>
<tr class="separator:acffec83601fda29bd4750b24f829f56b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfdaae53275ad8652d514549d9d0dc3b"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#acfdaae53275ad8652d514549d9d0dc3b">UDataMemoryIsAcceptable</a>(void *context, const char *type, const char *name, const <a class="el" href="structUDataInfo.html">UDataInfo</a> *pInfo)</td></tr>
<tr class="memdesc:acfdaae53275ad8652d514549d9d0dc3b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callback function for <a class="el" href="udata_8h.html#a83c754e186afcef6aa6f2d5613ea6237" title="Data loading function. ">udata_openChoice()</a>.  <a href="#acfdaae53275ad8652d514549d9d0dc3b">More...</a><br /></td></tr>
<tr class="separator:acfdaae53275ad8652d514549d9d0dc3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42fe6b5e781232a84e86418bfd02dfa4"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="udata_8h.html#a3a91c39b2841eb9f6d85e65771e39a1d">UDataFileAccess</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#a42fe6b5e781232a84e86418bfd02dfa4">UDataFileAccess</a></td></tr>
<tr class="memdesc:a42fe6b5e781232a84e86418bfd02dfa4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Possible settings for <a class="el" href="udata_8h.html#a8c5d958a5bfa2888e01c75f3006db3d4" title="This function may be called to control how ICU loads data. ">udata_setFileAccess()</a>  <a href="#a42fe6b5e781232a84e86418bfd02dfa4">More...</a><br /></td></tr>
<tr class="separator:a42fe6b5e781232a84e86418bfd02dfa4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a3a91c39b2841eb9f6d85e65771e39a1d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#a3a91c39b2841eb9f6d85e65771e39a1d">UDataFileAccess</a> { <br />
&#160;&#160;<a class="el" href="udata_8h.html#a3a91c39b2841eb9f6d85e65771e39a1da57e5b79c8b3dcafea1847941b4d6716a">UDATA_FILES_FIRST</a>, 
<a class="el" href="udata_8h.html#a3a91c39b2841eb9f6d85e65771e39a1da3c8d97cc91d09863d9c49a258cfd1ae6">UDATA_DEFAULT_ACCESS</a> = UDATA_FILES_FIRST, 
<a class="el" href="udata_8h.html#a3a91c39b2841eb9f6d85e65771e39a1da315dce52ee7ac48b4b56d3e221eb015c">UDATA_ONLY_PACKAGES</a>, 
<a class="el" href="udata_8h.html#a3a91c39b2841eb9f6d85e65771e39a1daf5d63aa31845f977654423ab44e2d1b2">UDATA_PACKAGES_FIRST</a>, 
<br />
&#160;&#160;<a class="el" href="udata_8h.html#a3a91c39b2841eb9f6d85e65771e39a1dafdaa8c2572590b0bc461dea1182074bd">UDATA_NO_FILES</a>, 
<a class="el" href="udata_8h.html#a3a91c39b2841eb9f6d85e65771e39a1da110ecbed30add8d95c1515c8bc2d6646">UDATA_FILE_ACCESS_COUNT</a>
<br />
 }<tr class="memdesc:a3a91c39b2841eb9f6d85e65771e39a1d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Possible settings for <a class="el" href="udata_8h.html#a8c5d958a5bfa2888e01c75f3006db3d4" title="This function may be called to control how ICU loads data. ">udata_setFileAccess()</a>  <a href="udata_8h.html#a3a91c39b2841eb9f6d85e65771e39a1d">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:a3a91c39b2841eb9f6d85e65771e39a1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a3d908d77900b182403a375793ad35a86"><td class="memItemLeft" align="right" valign="top"><a class="el" href="udata_8h.html#acffec83601fda29bd4750b24f829f56b">UDataMemory</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#a3d908d77900b182403a375793ad35a86">udata_open</a> (const char *path, const char *type, const char *name, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *pErrorCode)</td></tr>
<tr class="memdesc:a3d908d77900b182403a375793ad35a86"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience function.  <a href="#a3d908d77900b182403a375793ad35a86">More...</a><br /></td></tr>
<tr class="separator:a3d908d77900b182403a375793ad35a86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83c754e186afcef6aa6f2d5613ea6237"><td class="memItemLeft" align="right" valign="top"><a class="el" href="udata_8h.html#acffec83601fda29bd4750b24f829f56b">UDataMemory</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#a83c754e186afcef6aa6f2d5613ea6237">udata_openChoice</a> (const char *path, const char *type, const char *name, <a class="el" href="udata_8h.html#acfdaae53275ad8652d514549d9d0dc3b">UDataMemoryIsAcceptable</a> *isAcceptable, void *context, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *pErrorCode)</td></tr>
<tr class="memdesc:a83c754e186afcef6aa6f2d5613ea6237"><td class="mdescLeft">&#160;</td><td class="mdescRight">Data loading function.  <a href="#a83c754e186afcef6aa6f2d5613ea6237">More...</a><br /></td></tr>
<tr class="separator:a83c754e186afcef6aa6f2d5613ea6237"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bbdfd96420a07385f9562182e088e84"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#a2bbdfd96420a07385f9562182e088e84">udata_close</a> (<a class="el" href="udata_8h.html#acffec83601fda29bd4750b24f829f56b">UDataMemory</a> *pData)</td></tr>
<tr class="memdesc:a2bbdfd96420a07385f9562182e088e84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Close the data memory.  <a href="#a2bbdfd96420a07385f9562182e088e84">More...</a><br /></td></tr>
<tr class="separator:a2bbdfd96420a07385f9562182e088e84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaeccef7974428ffb54f6fc2150a325bd"><td class="memItemLeft" align="right" valign="top">const void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#aaeccef7974428ffb54f6fc2150a325bd">udata_getMemory</a> (<a class="el" href="udata_8h.html#acffec83601fda29bd4750b24f829f56b">UDataMemory</a> *pData)</td></tr>
<tr class="memdesc:aaeccef7974428ffb54f6fc2150a325bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the pointer to the actual data inside the data memory.  <a href="#aaeccef7974428ffb54f6fc2150a325bd">More...</a><br /></td></tr>
<tr class="separator:aaeccef7974428ffb54f6fc2150a325bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ae28f16e3713263a70225117414f54a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#a3ae28f16e3713263a70225117414f54a">udata_getInfo</a> (<a class="el" href="udata_8h.html#acffec83601fda29bd4750b24f829f56b">UDataMemory</a> *pData, <a class="el" href="structUDataInfo.html">UDataInfo</a> *pInfo)</td></tr>
<tr class="memdesc:a3ae28f16e3713263a70225117414f54a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the information from the data memory header.  <a href="#a3ae28f16e3713263a70225117414f54a">More...</a><br /></td></tr>
<tr class="separator:a3ae28f16e3713263a70225117414f54a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a467bda719595adb58f959dde735e1153"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#a467bda719595adb58f959dde735e1153">udata_setCommonData</a> (const void *data, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>
<tr class="memdesc:a467bda719595adb58f959dde735e1153"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function bypasses the normal ICU data loading process and allows you to force ICU's system data to come out of a user-specified area in memory.  <a href="#a467bda719595adb58f959dde735e1153">More...</a><br /></td></tr>
<tr class="separator:a467bda719595adb58f959dde735e1153"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a406559067e309c05fb90b2d532f11835"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#a406559067e309c05fb90b2d532f11835">udata_setAppData</a> (const char *packageName, const void *data, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>
<tr class="memdesc:a406559067e309c05fb90b2d532f11835"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function bypasses the normal ICU data loading process for application-specific data and allows you to force the it to come out of a user-specified pointer.  <a href="#a406559067e309c05fb90b2d532f11835">More...</a><br /></td></tr>
<tr class="separator:a406559067e309c05fb90b2d532f11835"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c5d958a5bfa2888e01c75f3006db3d4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udata_8h.html#a8c5d958a5bfa2888e01c75f3006db3d4">udata_setFileAccess</a> (<a class="el" href="udata_8h.html#a3a91c39b2841eb9f6d85e65771e39a1d">UDataFileAccess</a> access, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *status)</td></tr>
<tr class="memdesc:a8c5d958a5bfa2888e01c75f3006db3d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function may be called to control how ICU loads data.  <a href="#a8c5d958a5bfa2888e01c75f3006db3d4">More...</a><br /></td></tr>
<tr class="separator:a8c5d958a5bfa2888e01c75f3006db3d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>C API: Data loading interface. </p>
<h2>Information about data loading interface</h2>
<p>This API is used to find and efficiently load data for ICU and applications using ICU. It provides an abstract interface that specifies a data type and name to find and load the data. Normally this API is used by other ICU APIs to load required data out of the ICU data library, but it can be used to load data out of other places.</p>
<p>See the User Guide Data Management chapter. </p>

<p>Definition in file <a class="el" href="udata_8h_source.html">udata.h</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="ac1f62204384ab648418f081f2f80cefe"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define U_ICUDATA_ALIAS&#160;&#160;&#160;&quot;ICUDATA&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Alias for standard ICU data. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000176">Internal:</a></b></dt><dd>Do not use.</dd></dl>
<p>This API is for internal use only. ICU 3.0 </p>

<p>Definition at line <a class="el" href="udata_8h_source.html#l00071">71</a> of file <a class="el" href="udata_8h_source.html">udata.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8be002e64f35e45a4f8184ff8b78f557"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define U_TREE_ENTRY_SEP_CHAR&#160;&#160;&#160;'/'</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Character used to separate parts of entry names. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000174">Internal:</a></b></dt><dd>Do not use.</dd></dl>
<p>This API is for internal use only. ICU 3.0 </p>

<p>Definition at line <a class="el" href="udata_8h_source.html#l00059">59</a> of file <a class="el" href="udata_8h_source.html">udata.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab8c1adee7a40c51ee83c24ef769aed2b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define U_TREE_ENTRY_SEP_STRING&#160;&#160;&#160;&quot;/&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>String used to separate parts of entry names. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000175">Internal:</a></b></dt><dd>Do not use.</dd></dl>
<p>This API is for internal use only. ICU 3.0 </p>

<p>Definition at line <a class="el" href="udata_8h_source.html#l00065">65</a> of file <a class="el" href="udata_8h_source.html">udata.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3d33a3798f0bcb7a46ae662fbc4e4819"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define U_TREE_SEPARATOR&#160;&#160;&#160;'-'</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Character used to separate package names from tree names. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000172">Internal:</a></b></dt><dd>Do not use.</dd></dl>
<p>This API is for internal use only. ICU 3.0 </p>

<p>Definition at line <a class="el" href="udata_8h_source.html#l00047">47</a> of file <a class="el" href="udata_8h_source.html">udata.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4bcfcbd6c1d0a694ae00532cd2d38fa9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define U_TREE_SEPARATOR_STRING&#160;&#160;&#160;&quot;-&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>String used to separate package names from tree names. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000173">Internal:</a></b></dt><dd>Do not use.</dd></dl>
<p>This API is for internal use only. ICU 3.0 </p>

<p>Definition at line <a class="el" href="udata_8h_source.html#l00053">53</a> of file <a class="el" href="udata_8h_source.html">udata.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="a42fe6b5e781232a84e86418bfd02dfa4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef enum <a class="el" href="udata_8h.html#a3a91c39b2841eb9f6d85e65771e39a1d">UDataFileAccess</a>  <a class="el" href="udata_8h.html#a3a91c39b2841eb9f6d85e65771e39a1d">UDataFileAccess</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Possible settings for <a class="el" href="udata_8h.html#a8c5d958a5bfa2888e01c75f3006db3d4" title="This function may be called to control how ICU loads data. ">udata_setFileAccess()</a> </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="udata_8h.html#a8c5d958a5bfa2888e01c75f3006db3d4" title="This function may be called to control how ICU loads data. ">udata_setFileAccess</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable001689">Stable:</a></b></dt><dd>ICU 3.4 </dd></dl>

</div>
</div>
<a class="anchor" id="acffec83601fda29bd4750b24f829f56b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="udata_8h.html#acffec83601fda29bd4750b24f829f56b">UDataMemory</a> <a class="el" href="udata_8h.html#acffec83601fda29bd4750b24f829f56b">UDataMemory</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Forward declaration of the data memory type. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable001680">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="udata_8h_source.html#l00158">158</a> of file <a class="el" href="udata_8h_source.html">udata.h</a>.</p>

</div>
</div>
<a class="anchor" id="acfdaae53275ad8652d514549d9d0dc3b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> UDataMemoryIsAcceptable(void *context, const char *type, const char *name, const <a class="el" href="structUDataInfo.html">UDataInfo</a> *pInfo)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Callback function for <a class="el" href="udata_8h.html#a83c754e186afcef6aa6f2d5613ea6237" title="Data loading function. ">udata_openChoice()</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>parameter passed into <code><a class="el" href="udata_8h.html#a83c754e186afcef6aa6f2d5613ea6237" title="Data loading function. ">udata_openChoice()</a></code>. </td></tr>
    <tr><td class="paramname">type</td><td>The type of the data as passed into <code><a class="el" href="udata_8h.html#a83c754e186afcef6aa6f2d5613ea6237" title="Data loading function. ">udata_openChoice()</a></code>. It may be <code>NULL</code>. </td></tr>
    <tr><td class="paramname">name</td><td>The name of the data as passed into <code><a class="el" href="udata_8h.html#a83c754e186afcef6aa6f2d5613ea6237" title="Data loading function. ">udata_openChoice()</a></code>. </td></tr>
    <tr><td class="paramname">pInfo</td><td>A pointer to the <code><a class="el" href="structUDataInfo.html" title="UDataInfo contains the properties about the requested data. ">UDataInfo</a></code> structure of data that has been loaded and will be returned by <code><a class="el" href="udata_8h.html#a83c754e186afcef6aa6f2d5613ea6237" title="Data loading function. ">udata_openChoice()</a></code> if this function returns <code>TRUE</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE if the current data memory is acceptable </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable001681">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="udata_8h_source.html#l00174">174</a> of file <a class="el" href="udata_8h_source.html">udata.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="a3a91c39b2841eb9f6d85e65771e39a1d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="udata_8h.html#a3a91c39b2841eb9f6d85e65771e39a1d">UDataFileAccess</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Possible settings for <a class="el" href="udata_8h.html#a8c5d958a5bfa2888e01c75f3006db3d4" title="This function may be called to control how ICU loads data. ">udata_setFileAccess()</a> </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="udata_8h.html#a8c5d958a5bfa2888e01c75f3006db3d4" title="This function may be called to control how ICU loads data. ">udata_setFileAccess</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable001689">Stable:</a></b></dt><dd>ICU 3.4 </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a3a91c39b2841eb9f6d85e65771e39a1da57e5b79c8b3dcafea1847941b4d6716a"></a>UDATA_FILES_FIRST&#160;</td><td class="fielddoc">
<p>ICU looks for data in single files first, then in packages. </p>
<p>(default)</p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable001701">Stable:</a></b></dt><dd>ICU 3.4 </dd></dl>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a3a91c39b2841eb9f6d85e65771e39a1da3c8d97cc91d09863d9c49a258cfd1ae6"></a>UDATA_DEFAULT_ACCESS&#160;</td><td class="fielddoc">
<p>An alias for the default access mode. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable001702">Stable:</a></b></dt><dd>ICU 3.4 </dd></dl>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a3a91c39b2841eb9f6d85e65771e39a1da315dce52ee7ac48b4b56d3e221eb015c"></a>UDATA_ONLY_PACKAGES&#160;</td><td class="fielddoc">
<p>ICU only loads data from packages, not from single files. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable001703">Stable:</a></b></dt><dd>ICU 3.4 </dd></dl>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a3a91c39b2841eb9f6d85e65771e39a1daf5d63aa31845f977654423ab44e2d1b2"></a>UDATA_PACKAGES_FIRST&#160;</td><td class="fielddoc">
<p>ICU loads data from packages first, and only from single files if the data cannot be found in a package. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable001704">Stable:</a></b></dt><dd>ICU 3.4 </dd></dl>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a3a91c39b2841eb9f6d85e65771e39a1dafdaa8c2572590b0bc461dea1182074bd"></a>UDATA_NO_FILES&#160;</td><td class="fielddoc">
<p>ICU does not access the file system for data loading. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable001705">Stable:</a></b></dt><dd>ICU 3.4 </dd></dl>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a3a91c39b2841eb9f6d85e65771e39a1da110ecbed30add8d95c1515c8bc2d6646"></a>UDATA_FILE_ACCESS_COUNT&#160;</td><td class="fielddoc">
<p>Number of real UDataFileAccess values. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000084">Deprecated:</a></b></dt><dd>ICU 58 The numeric value may change over time, see ICU ticket #12420. </dd></dl>
</td></tr>
</table>

<p>Definition at line <a class="el" href="udata_8h_source.html#l00401">401</a> of file <a class="el" href="udata_8h_source.html">udata.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a2bbdfd96420a07385f9562182e088e84"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void udata_close </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="udata_8h.html#acffec83601fda29bd4750b24f829f56b">UDataMemory</a> *&#160;</td>
          <td class="paramname"><em>pData</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Close the data memory. </p>
<p>This function must be called to allow the system to release resources associated with this data memory. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pData</td><td>The pointer to data memory object </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable001684">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a3ae28f16e3713263a70225117414f54a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void udata_getInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="udata_8h.html#acffec83601fda29bd4750b24f829f56b">UDataMemory</a> *&#160;</td>
          <td class="paramname"><em>pData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUDataInfo.html">UDataInfo</a> *&#160;</td>
          <td class="paramname"><em>pInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the information from the data memory header. </p>
<p>This allows to get access to the header containing platform data properties etc. which is not part of the data itself and can therefore not be accessed via the pointer that <code><a class="el" href="udata_8h.html#aaeccef7974428ffb54f6fc2150a325bd" title="Get the pointer to the actual data inside the data memory. ">udata_getMemory()</a></code> returns.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pData</td><td>pointer to the data memory object </td></tr>
    <tr><td class="paramname">pInfo</td><td>pointer to a <a class="el" href="structUDataInfo.html" title="UDataInfo contains the properties about the requested data. ">UDataInfo</a> object; its <code>size</code> field must be set correctly, typically to <code>sizeof(UDataInfo)</code>.</td></tr>
  </table>
  </dd>
</dl>
<p><code>*pInfo</code> will be filled with the <a class="el" href="structUDataInfo.html" title="UDataInfo contains the properties about the requested data. ">UDataInfo</a> structure in the data memory object. If this structure is smaller than <code>pInfo-&gt;size</code>, then the <code>size</code> will be adjusted and only part of the structure will be filled. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable001686">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aaeccef7974428ffb54f6fc2150a325bd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const void* udata_getMemory </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="udata_8h.html#acffec83601fda29bd4750b24f829f56b">UDataMemory</a> *&#160;</td>
          <td class="paramname"><em>pData</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the pointer to the actual data inside the data memory. </p>
<p>The data is read-only.</p>
<p>ICU data must be at least 8-aligned, and should be 16-aligned.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pData</td><td>The pointer to data memory object </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable001685">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a3d908d77900b182403a375793ad35a86"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="udata_8h.html#acffec83601fda29bd4750b24f829f56b">UDataMemory</a>* udata_open </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>pErrorCode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convenience function. </p>
<p>This function works the same as <code>udata_openChoice</code> except that any data that matches the type and name is assumed to be acceptable. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>Specifies an absolute path and/or a basename for the finding of the data in the file system. <code>NULL</code> for ICU data. </td></tr>
    <tr><td class="paramname">type</td><td>A string that specifies the type of data to be loaded. For example, resource bundles are loaded with type "res", conversion tables with type "cnv". This may be <code>NULL</code> or empty. </td></tr>
    <tr><td class="paramname">name</td><td>A string that specifies the name of the data. </td></tr>
    <tr><td class="paramname">pErrorCode</td><td>An ICU UErrorCode parameter. It must not be <code>NULL</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer (handle) to a data memory object, or <code>NULL</code> if an error occurs. Call <code><a class="el" href="udata_8h.html#aaeccef7974428ffb54f6fc2150a325bd" title="Get the pointer to the actual data inside the data memory. ">udata_getMemory()</a></code> to get a pointer to the actual data.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="udata_8h.html#a83c754e186afcef6aa6f2d5613ea6237" title="Data loading function. ">udata_openChoice</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable001682">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a83c754e186afcef6aa6f2d5613ea6237"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="udata_8h.html#acffec83601fda29bd4750b24f829f56b">UDataMemory</a>* udata_openChoice </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="udata_8h.html#acfdaae53275ad8652d514549d9d0dc3b">UDataMemoryIsAcceptable</a> *&#160;</td>
          <td class="paramname"><em>isAcceptable</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>pErrorCode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Data loading function. </p>
<p>This function is used to find and load efficiently data for ICU and applications using ICU. It provides an abstract interface that allows to specify a data type and name to find and load the data.</p>
<p>The implementation depends on platform properties and user preferences and may involve loading shared libraries (DLLs), mapping files into memory, or fopen()/fread() files. It may also involve using static memory or database queries etc. Several or all data items may be combined into one entity (DLL, memory-mappable file).</p>
<p>The data is always preceded by a header that includes a <code><a class="el" href="structUDataInfo.html" title="UDataInfo contains the properties about the requested data. ">UDataInfo</a></code> structure. The caller's <code>isAcceptable()</code> function is called to make sure that the data is useful. It may be called several times if it rejects the data and there is more than one location with data matching the type and name.</p>
<p>If <code>path==NULL</code>, then ICU data is loaded. Otherwise, it is separated into a basename and a basename-less directory string. The basename is used as the data package name, and the directory is logically prepended to the ICU data directory string.</p>
<p>For details about ICU data loading see the User Guide Data Management chapter. (<a href="http://icu-project.org/userguide/icudata.html">http://icu-project.org/userguide/icudata.html</a>)</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>Specifies an absolute path and/or a basename for the finding of the data in the file system. <code>NULL</code> for ICU data. </td></tr>
    <tr><td class="paramname">type</td><td>A string that specifies the type of data to be loaded. For example, resource bundles are loaded with type "res", conversion tables with type "cnv". This may be <code>NULL</code> or empty. </td></tr>
    <tr><td class="paramname">name</td><td>A string that specifies the name of the data. </td></tr>
    <tr><td class="paramname">isAcceptable</td><td>This function is called to verify that loaded data is useful for the client code. If it returns FALSE for all data items, then <code><a class="el" href="udata_8h.html#a83c754e186afcef6aa6f2d5613ea6237" title="Data loading function. ">udata_openChoice()</a></code> will return with an error. </td></tr>
    <tr><td class="paramname">context</td><td>Arbitrary parameter to be passed into isAcceptable. </td></tr>
    <tr><td class="paramname">pErrorCode</td><td>An ICU UErrorCode parameter. It must not be <code>NULL</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer (handle) to a data memory object, or <code>NULL</code> if an error occurs. Call <code><a class="el" href="udata_8h.html#aaeccef7974428ffb54f6fc2150a325bd" title="Get the pointer to the actual data inside the data memory. ">udata_getMemory()</a></code> to get a pointer to the actual data. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable001683">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a406559067e309c05fb90b2d532f11835"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void udata_setAppData </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>packageName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>err</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function bypasses the normal ICU data loading process for application-specific data and allows you to force the it to come out of a user-specified pointer. </p>
<p>ICU data must be at least 8-aligned, and should be 16-aligned. See <a href="http://userguide.icu-project.org/icudata">http://userguide.icu-project.org/icudata</a></p>
<p>The format of this data is that of the icu common data file, like 'icudt26l.dat' or the corresponding shared library (DLL) file. The application must read in or otherwise construct an image of the data and then pass the address of it to this function.</p>
<p>Warning: setAppData will set a U_USING_DEFAULT_WARNING code if data with the specifed path that has already been opened, or if setAppData with the same path has already been called. Any such calls to setAppData will have no effect.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">packageName</td><td>the package name by which the application will refer to (open) this data </td></tr>
    <tr><td class="paramname">data</td><td>pointer to the data </td></tr>
    <tr><td class="paramname">err</td><td>outgoing error status <code>U_USING_DEFAULT_WARNING, U_UNSUPPORTED_ERROR</code> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="udata_8h.html#a467bda719595adb58f959dde735e1153" title="This function bypasses the normal ICU data loading process and allows you to force ICU&#39;s system data ...">udata_setCommonData</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable001688">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a467bda719595adb58f959dde735e1153"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void udata_setCommonData </td>
          <td>(</td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>err</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function bypasses the normal ICU data loading process and allows you to force ICU's system data to come out of a user-specified area in memory. </p>
<p>ICU data must be at least 8-aligned, and should be 16-aligned. See <a href="http://userguide.icu-project.org/icudata">http://userguide.icu-project.org/icudata</a></p>
<p>The format of this data is that of the icu common data file, as is generated by the pkgdata tool with mode=common or mode=dll. You can read in a whole common mode file and pass the address to the start of the data, or (with the appropriate link options) pass in the pointer to the data that has been loaded from a dll by the operating system, as shown in this code: </p><pre class="fragment">  extern const char U_IMPORT U_ICUDATA_ENTRY_POINT [];
   // U_ICUDATA_ENTRY_POINT is same as entry point specified to pkgdata tool
  UErrorCode  status = U_ZERO_ERROR;

  udata_setCommonData(&amp;U_ICUDATA_ENTRY_POINT, &amp;status);
</pre><p>It is important that the declaration be as above. The entry point must not be declared as an extern void*.</p>
<p>Starting with ICU 4.4, it is possible to set several data packages, one per call to this function. <a class="el" href="udata_8h.html#a3d908d77900b182403a375793ad35a86" title="Convenience function. ">udata_open()</a> will look for data in the multiple data packages in the order in which they were set. The position of the linked-in or default-name ICU .data package in the search list depends on when the first data item is loaded that is not contained in the already explicitly set packages. If data was loaded implicitly before the first call to this function (for example, via opening a converter, constructing a UnicodeString from default-codepage data, using formatting or collation APIs, etc.), then the default data will be first in the list.</p>
<p>This function has no effect on application (non ICU) data. See <a class="el" href="udata_8h.html#a406559067e309c05fb90b2d532f11835" title="This function bypasses the normal ICU data loading process for application-specific data and allows y...">udata_setAppData()</a> for similar functionality for application data.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>pointer to ICU common data </td></tr>
    <tr><td class="paramname">err</td><td>outgoing error status <code>U_USING_DEFAULT_WARNING, U_UNSUPPORTED_ERROR</code> </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable001687">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a8c5d958a5bfa2888e01c75f3006db3d4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void udata_setFileAccess </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="udata_8h.html#a3a91c39b2841eb9f6d85e65771e39a1d">UDataFileAccess</a>&#160;</td>
          <td class="paramname"><em>access</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function may be called to control how ICU loads data. </p>
<p>It must be called before any ICU data is loaded, including application data loaded with ures/ResourceBundle or udata APIs. This function is not multithread safe. The results of calling it while other threads are loading data are undefined. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">access</td><td>The type of file access to be used </td></tr>
    <tr><td class="paramname">status</td><td>Error code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="udata_8h.html#a3a91c39b2841eb9f6d85e65771e39a1d" title="Possible settings for udata_setFileAccess() ">UDataFileAccess</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable001690">Stable:</a></b></dt><dd>ICU 3.4 </dd></dl>

</div>
</div>
</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>