Sophie

Sophie

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

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: caniter.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>caniter.h</h1><a href="caniter_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"> * Copyright (C) 1996-2006, International Business Machines Corporation and    *</span>
<a name="l00004"></a>00004 <span class="comment"> * others. All Rights Reserved.                                                *</span>
<a name="l00005"></a>00005 <span class="comment"> *******************************************************************************</span>
<a name="l00006"></a>00006 <span class="comment"> */</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef CANITER_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define CANITER_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include "<a class="code" href="utypes_8h.html">unicode/utypes.h</a>"</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="preprocessor">#if !UCONFIG_NO_NORMALIZATION</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span>
<a name="l00015"></a>00015 <span class="preprocessor">#include "<a class="code" href="uobject_8h.html">unicode/uobject.h</a>"</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include "<a class="code" href="unistr_8h.html">unicode/unistr.h</a>"</span>
<a name="l00017"></a>00017 
<a name="l00027"></a>00027 <span class="preprocessor">#ifndef CANITER_SKIP_ZEROES</span>
<a name="l00028"></a><a class="code" href="caniter_8h.html#230bca33834dba365601e9e3157aa6db">00028</a> <span class="preprocessor"></span><span class="preprocessor">#define CANITER_SKIP_ZEROES TRUE</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <a class="code" href="umachine_8h.html#ec4a51c37f4e3f3d7e5c42e6e3eafa63">U_NAMESPACE_BEGIN</a>
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="keyword">class </span>Hashtable;
<a name="l00034"></a>00034 
<a name="l00070"></a><a class="code" href="classCanonicalIterator.html">00070</a> <span class="keyword">class </span><a class="code" href="utypes_8h.html#394335b549a811cf26891e043f211e9d">U_COMMON_API</a> <a class="code" href="classCanonicalIterator.html">CanonicalIterator</a> : <span class="keyword">public</span> <a class="code" href="classUObject.html">UObject</a> {
<a name="l00071"></a>00071 <span class="keyword">public</span>:
<a name="l00078"></a>00078     <a class="code" href="classCanonicalIterator.html">CanonicalIterator</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html">UnicodeString</a> &amp;source, <a class="code" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;status);
<a name="l00079"></a>00079 
<a name="l00084"></a>00084     <span class="keyword">virtual</span> ~<a class="code" href="classCanonicalIterator.html">CanonicalIterator</a>();
<a name="l00085"></a>00085 
<a name="l00091"></a>00091     <a class="code" href="classUnicodeString.html">UnicodeString</a> getSource();
<a name="l00092"></a>00092 
<a name="l00097"></a>00097     <span class="keywordtype">void</span> reset();
<a name="l00098"></a>00098 
<a name="l00106"></a>00106     <a class="code" href="classUnicodeString.html">UnicodeString</a> next();
<a name="l00107"></a>00107 
<a name="l00115"></a>00115     <span class="keywordtype">void</span> setSource(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html">UnicodeString</a> &amp;newSource, <a class="code" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;status);
<a name="l00116"></a>00116 
<a name="l00126"></a>00126     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#d665df105e679e1428e48dc5cb90a756">U_EXPORT2</a> permute(<a class="code" href="classUnicodeString.html">UnicodeString</a> &amp;source, <a class="code" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> skipZeros, Hashtable *result, <a class="code" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;status);
<a name="l00127"></a>00127 
<a name="l00133"></a>00133     <span class="keyword">static</span> <a class="code" href="utypes_8h.html#452dc3c7d14eb1a1837ae1aa0b2d6724">UClassID</a> <a class="code" href="platform_8h.html#d665df105e679e1428e48dc5cb90a756">U_EXPORT2</a> getStaticClassID();
<a name="l00134"></a>00134 
<a name="l00140"></a>00140     <span class="keyword">virtual</span> <a class="code" href="utypes_8h.html#452dc3c7d14eb1a1837ae1aa0b2d6724">UClassID</a> <a class="code" href="classUObject.html#60f3fba82b9d7edfe3d3f9d423ab826d">getDynamicClassID</a>() <span class="keyword">const</span>;
<a name="l00141"></a>00141 
<a name="l00142"></a>00142 <span class="keyword">private</span>:
<a name="l00143"></a>00143     <span class="comment">// ===================== PRIVATES ==============================</span>
<a name="l00144"></a>00144     <span class="comment">// private default constructor</span>
<a name="l00145"></a>00145     <a class="code" href="classCanonicalIterator.html">CanonicalIterator</a>();
<a name="l00146"></a>00146 
<a name="l00147"></a>00147 
<a name="l00152"></a>00152     <a class="code" href="classCanonicalIterator.html">CanonicalIterator</a>(<span class="keyword">const</span> <a class="code" href="classCanonicalIterator.html">CanonicalIterator</a>&amp; other);
<a name="l00153"></a>00153 
<a name="l00158"></a>00158     <a class="code" href="classCanonicalIterator.html">CanonicalIterator</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classCanonicalIterator.html">CanonicalIterator</a>&amp; other);
<a name="l00159"></a>00159 
<a name="l00160"></a>00160     <span class="comment">// fields</span>
<a name="l00161"></a>00161     <a class="code" href="classUnicodeString.html">UnicodeString</a> source;
<a name="l00162"></a>00162     <a class="code" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> done;
<a name="l00163"></a>00163 
<a name="l00164"></a>00164     <span class="comment">// 2 dimensional array holds the pieces of the string with</span>
<a name="l00165"></a>00165     <span class="comment">// their different canonically equivalent representations</span>
<a name="l00166"></a>00166     <a class="code" href="classUnicodeString.html">UnicodeString</a> **pieces;
<a name="l00167"></a>00167     <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> pieces_length;
<a name="l00168"></a>00168     <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *pieces_lengths;
<a name="l00169"></a>00169 
<a name="l00170"></a>00170     <span class="comment">// current is used in iterating to combine pieces</span>
<a name="l00171"></a>00171     <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> *current;
<a name="l00172"></a>00172     <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> current_length;
<a name="l00173"></a>00173 
<a name="l00174"></a>00174     <span class="comment">// transient fields</span>
<a name="l00175"></a>00175     <a class="code" href="classUnicodeString.html">UnicodeString</a> buffer;
<a name="l00176"></a>00176 
<a name="l00177"></a>00177     <span class="comment">// we have a segment, in NFD. Find all the strings that are canonically equivalent to it.</span>
<a name="l00178"></a>00178     <a class="code" href="classUnicodeString.html">UnicodeString</a> *getEquivalents(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html">UnicodeString</a> &amp;segment, <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> &amp;result_len, <a class="code" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;status); <span class="comment">//private String[] getEquivalents(String segment)</span>
<a name="l00179"></a>00179 
<a name="l00180"></a>00180     <span class="comment">//Set getEquivalents2(String segment);</span>
<a name="l00181"></a>00181     Hashtable *getEquivalents2(Hashtable *fillinResult, <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a7213b402d772584553f6e614109e6e4">UChar</a> *segment, <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> segLen, <a class="code" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;status);
<a name="l00182"></a>00182     <span class="comment">//Hashtable *getEquivalents2(const UnicodeString &amp;segment, int32_t segLen, UErrorCode &amp;status);</span>
<a name="l00183"></a>00183 
<a name="l00189"></a>00189     <span class="comment">//Set extract(int comp, String segment, int segmentPos, StringBuffer buffer);</span>
<a name="l00190"></a>00190     Hashtable *extract(Hashtable *fillinResult, <a class="code" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> comp, <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a7213b402d772584553f6e614109e6e4">UChar</a> *segment, <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> segLen, <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> segmentPos, <a class="code" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;status);
<a name="l00191"></a>00191     <span class="comment">//Hashtable *extract(UChar32 comp, const UnicodeString &amp;segment, int32_t segLen, int32_t segmentPos, UErrorCode &amp;status);</span>
<a name="l00192"></a>00192 
<a name="l00193"></a>00193     <span class="keywordtype">void</span> cleanPieces();
<a name="l00194"></a>00194 
<a name="l00195"></a>00195 };
<a name="l00196"></a>00196 
<a name="l00197"></a>00197 <a class="code" href="umachine_8h.html#951037cc9951ac3c70b527f8137f9f74">U_NAMESPACE_END</a>
<a name="l00198"></a>00198 
<a name="l00199"></a>00199 <span class="preprocessor">#endif </span><span class="comment">/* #if !UCONFIG_NO_NORMALIZATION */</span>
<a name="l00200"></a>00200 
<a name="l00201"></a>00201 <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>