Sophie

Sophie

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

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: ustringtrie.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="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">ustringtrie.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>C API: Helper definitions for dictionary trie APIs.  
<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 />
</div>
<p><a href="ustringtrie_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="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ad1e3fea7099ad56dfbc6d82d997a15ec"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustringtrie_8h.html#ad1e3fea7099ad56dfbc6d82d997a15ec">USTRINGTRIE_MATCHES</a>(result)&#160;&#160;&#160;((result)!=<a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bda59cdeb2ea73a75c61684b4ea11ccfb37">USTRINGTRIE_NO_MATCH</a>)</td></tr>
<tr class="memdesc:ad1e3fea7099ad56dfbc6d82d997a15ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Same as (result!=USTRINGTRIE_NO_MATCH).  <a href="#ad1e3fea7099ad56dfbc6d82d997a15ec">More...</a><br /></td></tr>
<tr class="separator:ad1e3fea7099ad56dfbc6d82d997a15ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1bd176224b0d2e692c76d819be185b8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustringtrie_8h.html#af1bd176224b0d2e692c76d819be185b8">USTRINGTRIE_HAS_VALUE</a>(result)&#160;&#160;&#160;((result)&gt;=<a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bda4474a12ed66e5def252c31cadd0a2663">USTRINGTRIE_FINAL_VALUE</a>)</td></tr>
<tr class="memdesc:af1bd176224b0d2e692c76d819be185b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equivalent to (result==USTRINGTRIE_INTERMEDIATE_VALUE || result==USTRINGTRIE_FINAL_VALUE) but this macro evaluates result exactly once.  <a href="#af1bd176224b0d2e692c76d819be185b8">More...</a><br /></td></tr>
<tr class="separator:af1bd176224b0d2e692c76d819be185b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e1962396a228f3d0f7d073fef78e2e0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustringtrie_8h.html#a7e1962396a228f3d0f7d073fef78e2e0">USTRINGTRIE_HAS_NEXT</a>(result)&#160;&#160;&#160;((result)&amp;1)</td></tr>
<tr class="memdesc:a7e1962396a228f3d0f7d073fef78e2e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equivalent to (result==USTRINGTRIE_NO_VALUE || result==USTRINGTRIE_INTERMEDIATE_VALUE) but this macro evaluates result exactly once.  <a href="#a7e1962396a228f3d0f7d073fef78e2e0">More...</a><br /></td></tr>
<tr class="separator:a7e1962396a228f3d0f7d073fef78e2e0"><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:a760046451d48a1551ba71162a31365bd"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bd">UStringTrieResult</a> { <a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bda59cdeb2ea73a75c61684b4ea11ccfb37">USTRINGTRIE_NO_MATCH</a>, 
<a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bda686677dbe92d514a0f424b48810fb21c">USTRINGTRIE_NO_VALUE</a>, 
<a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bda4474a12ed66e5def252c31cadd0a2663">USTRINGTRIE_FINAL_VALUE</a>, 
<a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bda62f2fef78e07bab5f68fa803b581504f">USTRINGTRIE_INTERMEDIATE_VALUE</a>
 }<tr class="memdesc:a760046451d48a1551ba71162a31365bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return values for BytesTrie::next(), UCharsTrie::next() and similar methods.  <a href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bd">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:a760046451d48a1551ba71162a31365bd"><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: Helper definitions for dictionary trie APIs. </p>

<p>Definition in file <a class="el" href="ustringtrie_8h_source.html">ustringtrie.h</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a7e1962396a228f3d0f7d073fef78e2e0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define USTRINGTRIE_HAS_NEXT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">result</td><td>)</td>
          <td>&#160;&#160;&#160;((result)&amp;1)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Equivalent to (result==USTRINGTRIE_NO_VALUE || result==USTRINGTRIE_INTERMEDIATE_VALUE) but this macro evaluates result exactly once. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">result</td><td>A result from BytesTrie::first(), UCharsTrie::next() etc. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if another input byte/unit can continue a matching string. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002793">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>

<p>Definition at line <a class="el" href="ustringtrie_8h_source.html#l00095">95</a> of file <a class="el" href="ustringtrie_8h_source.html">ustringtrie.h</a>.</p>

</div>
</div>
<a class="anchor" id="af1bd176224b0d2e692c76d819be185b8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define USTRINGTRIE_HAS_VALUE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">result</td><td>)</td>
          <td>&#160;&#160;&#160;((result)&gt;=<a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bda4474a12ed66e5def252c31cadd0a2663">USTRINGTRIE_FINAL_VALUE</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Equivalent to (result==USTRINGTRIE_INTERMEDIATE_VALUE || result==USTRINGTRIE_FINAL_VALUE) but this macro evaluates result exactly once. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">result</td><td>A result from BytesTrie::first(), UCharsTrie::next() etc. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if there is a value for the input bytes/units so far. </dd></dl>
<dl class="section see"><dt>See also</dt><dd>BytesTrie::getValue </dd>
<dd>
UCharsTrie::getValue </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002792">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>

<p>Definition at line <a class="el" href="ustringtrie_8h_source.html#l00086">86</a> of file <a class="el" href="ustringtrie_8h_source.html">ustringtrie.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad1e3fea7099ad56dfbc6d82d997a15ec"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define USTRINGTRIE_MATCHES</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">result</td><td>)</td>
          <td>&#160;&#160;&#160;((result)!=<a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bda59cdeb2ea73a75c61684b4ea11ccfb37">USTRINGTRIE_NO_MATCH</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Same as (result!=USTRINGTRIE_NO_MATCH). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">result</td><td>A result from BytesTrie::first(), UCharsTrie::next() etc. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the input bytes/units so far are part of a matching string/byte sequence. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002791">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>

<p>Definition at line <a class="el" href="ustringtrie_8h_source.html#l00075">75</a> of file <a class="el" href="ustringtrie_8h_source.html">ustringtrie.h</a>.</p>

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

<p>Return values for BytesTrie::next(), UCharsTrie::next() and similar methods. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="ustringtrie_8h.html#ad1e3fea7099ad56dfbc6d82d997a15ec" title="Same as (result!=USTRINGTRIE_NO_MATCH). ">USTRINGTRIE_MATCHES</a> </dd>
<dd>
<a class="el" href="ustringtrie_8h.html#af1bd176224b0d2e692c76d819be185b8" title="Equivalent to (result==USTRINGTRIE_INTERMEDIATE_VALUE || result==USTRINGTRIE_FINAL_VALUE) but this ma...">USTRINGTRIE_HAS_VALUE</a> </dd>
<dd>
<a class="el" href="ustringtrie_8h.html#a7e1962396a228f3d0f7d073fef78e2e0" title="Equivalent to (result==USTRINGTRIE_NO_VALUE || result==USTRINGTRIE_INTERMEDIATE_VALUE) but this macro...">USTRINGTRIE_HAS_NEXT</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002790">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a760046451d48a1551ba71162a31365bda59cdeb2ea73a75c61684b4ea11ccfb37"></a>USTRINGTRIE_NO_MATCH&#160;</td><td class="fielddoc">
<p>The input unit(s) did not continue a matching string. </p>
<p>Once current()/next() return USTRINGTRIE_NO_MATCH, all further calls to current()/next() will also return USTRINGTRIE_NO_MATCH, until the trie is reset to its original state or to a saved state. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable002794">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a760046451d48a1551ba71162a31365bda686677dbe92d514a0f424b48810fb21c"></a>USTRINGTRIE_NO_VALUE&#160;</td><td class="fielddoc">
<p>The input unit(s) continued a matching string but there is no value for the string so far. </p>
<p>(It is a prefix of a longer string.) </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable002795">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a760046451d48a1551ba71162a31365bda4474a12ed66e5def252c31cadd0a2663"></a>USTRINGTRIE_FINAL_VALUE&#160;</td><td class="fielddoc">
<p>The input unit(s) continued a matching string and there is a value for the string so far. </p>
<p>This value will be returned by getValue(). No further input byte/unit can continue a matching string. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable002796">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a760046451d48a1551ba71162a31365bda62f2fef78e07bab5f68fa803b581504f"></a>USTRINGTRIE_INTERMEDIATE_VALUE&#160;</td><td class="fielddoc">
<p>The input unit(s) continued a matching string and there is a value for the string so far. </p>
<p>This value will be returned by getValue(). Another input byte/unit can continue a matching string. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable002797">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
</td></tr>
</table>

<p>Definition at line <a class="el" href="ustringtrie_8h_source.html#l00035">35</a> of file <a class="el" href="ustringtrie_8h_source.html">ustringtrie.h</a>.</p>

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