Sophie

Sophie

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

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: rep.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>rep.h</h1><a href="rep_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) 1999-2005, 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">*   Date        Name        Description</span>
<a name="l00007"></a>00007 <span class="comment">*   11/17/99    aliu        Creation.  Ported from java.  Modified to</span>
<a name="l00008"></a>00008 <span class="comment">*                           match current UnicodeString API.  Forced</span>
<a name="l00009"></a>00009 <span class="comment">*                           to use name "handleReplaceBetween" because</span>
<a name="l00010"></a>00010 <span class="comment">*                           of existing methods in UnicodeString.</span>
<a name="l00011"></a>00011 <span class="comment">**************************************************************************</span>
<a name="l00012"></a>00012 <span class="comment">*/</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef REP_H</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define REP_H</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include "<a class="code" href="uobject_8h.html">unicode/uobject.h</a>"</span>
<a name="l00018"></a>00018 
<a name="l00024"></a>00024 <a class="code" href="umachine_8h.html#ec4a51c37f4e3f3d7e5c42e6e3eafa63">U_NAMESPACE_BEGIN</a>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="keyword">class </span><a class="code" href="classUnicodeString.html">UnicodeString</a>;
<a name="l00027"></a>00027 
<a name="l00071"></a><a class="code" href="classReplaceable.html">00071</a> <span class="keyword">class </span><a class="code" href="utypes_8h.html#394335b549a811cf26891e043f211e9d">U_COMMON_API</a> <a class="code" href="classReplaceable.html">Replaceable</a> : <span class="keyword">public</span> <a class="code" href="classUObject.html">UObject</a> {
<a name="l00072"></a>00072 
<a name="l00073"></a>00073 <span class="keyword">public</span>:
<a name="l00078"></a>00078     <span class="keyword">virtual</span> ~<a class="code" href="classReplaceable.html">Replaceable</a>();
<a name="l00079"></a>00079 
<a name="l00085"></a>00085     <span class="keyword">inline</span> <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> <a class="code" href="ucnv_8h.html#c14f4e493302a219114039668cd5c7d1">length</a>() <span class="keyword">const</span>;
<a name="l00086"></a>00086 
<a name="l00094"></a>00094     <span class="keyword">inline</span> <a class="code" href="umachine_8h.html#a7213b402d772584553f6e614109e6e4">UChar</a> charAt(<a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> offset) <span class="keyword">const</span>;
<a name="l00095"></a>00095 
<a name="l00108"></a>00108     <span class="keyword">inline</span> <a class="code" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> char32At(<a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> offset) <span class="keyword">const</span>;
<a name="l00109"></a>00109 
<a name="l00120"></a>00120     <span class="keyword">virtual</span> <span class="keywordtype">void</span> extractBetween(<a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> start,
<a name="l00121"></a>00121                                 <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> limit,
<a name="l00122"></a>00122                                 <a class="code" href="classUnicodeString.html">UnicodeString</a>&amp; target) <span class="keyword">const </span>= 0;
<a name="l00123"></a>00123 
<a name="l00144"></a>00144     <span class="keyword">virtual</span> <span class="keywordtype">void</span> handleReplaceBetween(<a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> start,
<a name="l00145"></a>00145                                       <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> limit,
<a name="l00146"></a>00146                                       <span class="keyword">const</span> <a class="code" href="classUnicodeString.html">UnicodeString</a>&amp; text) = 0;
<a name="l00147"></a>00147     <span class="comment">// Note: All other methods in this class take the names of</span>
<a name="l00148"></a>00148     <span class="comment">// existing UnicodeString methods.  This method is the exception.</span>
<a name="l00149"></a>00149     <span class="comment">// It is named differently because all replace methods of</span>
<a name="l00150"></a>00150     <span class="comment">// UnicodeString return a UnicodeString&amp;.  The 'between' is</span>
<a name="l00151"></a>00151     <span class="comment">// required in order to conform to the UnicodeString naming</span>
<a name="l00152"></a>00152     <span class="comment">// convention; API taking start/length are named &lt;operation&gt;, and</span>
<a name="l00153"></a>00153     <span class="comment">// those taking start/limit are named &lt;operationBetween&gt;.  The</span>
<a name="l00154"></a>00154     <span class="comment">// 'handle' is added because 'replaceBetween' and</span>
<a name="l00155"></a>00155     <span class="comment">// 'doReplaceBetween' are already taken.</span>
<a name="l00156"></a>00156 
<a name="l00172"></a>00172     <span class="keyword">virtual</span> <span class="keywordtype">void</span> copy(<a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> start, <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> limit, <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> dest) = 0;
<a name="l00173"></a>00173 
<a name="l00183"></a>00183     <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> hasMetaData() <span class="keyword">const</span>;
<a name="l00184"></a>00184 
<a name="l00200"></a>00200     <span class="keyword">virtual</span> <a class="code" href="classReplaceable.html">Replaceable</a> *clone() <span class="keyword">const</span>;
<a name="l00201"></a>00201 
<a name="l00202"></a>00202 <span class="keyword">protected</span>:
<a name="l00203"></a>00203 
<a name="l00208"></a>00208     <a class="code" href="classReplaceable.html">Replaceable</a>();
<a name="l00209"></a>00209 
<a name="l00210"></a>00210     <span class="comment">/*</span>
<a name="l00211"></a>00211 <span class="comment">     * Assignment operator not declared. The compiler will provide one</span>
<a name="l00212"></a>00212 <span class="comment">     * which does nothing since this class does not contain any data members.</span>
<a name="l00213"></a>00213 <span class="comment">     * API/code coverage may show the assignment operator as present and</span>
<a name="l00214"></a>00214 <span class="comment">     * untested - ignore.</span>
<a name="l00215"></a>00215 <span class="comment">     * Subclasses need this assignment operator if they use compiler-provided</span>
<a name="l00216"></a>00216 <span class="comment">     * assignment operators of their own. An alternative to not declaring one</span>
<a name="l00217"></a>00217 <span class="comment">     * here would be to declare and empty-implement a protected or public one.</span>
<a name="l00218"></a>00218 <span class="comment">    Replaceable &amp;Replaceable::operator=(const Replaceable &amp;);</span>
<a name="l00219"></a>00219 <span class="comment">     */</span>
<a name="l00220"></a>00220 
<a name="l00225"></a>00225     <span class="keyword">virtual</span> <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> getLength() <span class="keyword">const </span>= 0;
<a name="l00226"></a>00226 
<a name="l00231"></a>00231     <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a7213b402d772584553f6e614109e6e4">UChar</a> getCharAt(<a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> offset) <span class="keyword">const </span>= 0;
<a name="l00232"></a>00232 
<a name="l00237"></a>00237     <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> getChar32At(<a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> offset) <span class="keyword">const </span>= 0;
<a name="l00238"></a>00238 };
<a name="l00239"></a>00239 
<a name="l00240"></a>00240 <span class="keyword">inline</span> <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>
<a name="l00241"></a><a class="code" href="classReplaceable.html#1547ffa5a536609358a7adbc7ac56b34">00241</a> <a class="code" href="classReplaceable.html#1547ffa5a536609358a7adbc7ac56b34">Replaceable::length</a>()<span class="keyword"> const </span>{
<a name="l00242"></a>00242     <span class="keywordflow">return</span> <a class="code" href="classReplaceable.html#eacec6eaad5f645656b2a4d397e9d189">getLength</a>();
<a name="l00243"></a>00243 }
<a name="l00244"></a>00244 
<a name="l00245"></a>00245 <span class="keyword">inline</span> <a class="code" href="umachine_8h.html#a7213b402d772584553f6e614109e6e4">UChar</a>
<a name="l00246"></a><a class="code" href="classReplaceable.html#d25543d3ba77f1f9b8a8e42205610c2c">00246</a> <a class="code" href="classReplaceable.html#d25543d3ba77f1f9b8a8e42205610c2c">Replaceable::charAt</a>(<a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> offset)<span class="keyword"> const </span>{
<a name="l00247"></a>00247     <span class="keywordflow">return</span> <a class="code" href="classReplaceable.html#bd9e32f621f6e02483fcf0527c9a6dfc">getCharAt</a>(offset);
<a name="l00248"></a>00248 }
<a name="l00249"></a>00249 
<a name="l00250"></a>00250 <span class="keyword">inline</span> <a class="code" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a>
<a name="l00251"></a><a class="code" href="classReplaceable.html#6db9829f7e05480fcb925fc86de857c8">00251</a> <a class="code" href="classReplaceable.html#6db9829f7e05480fcb925fc86de857c8">Replaceable::char32At</a>(<a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> offset)<span class="keyword"> const </span>{
<a name="l00252"></a>00252     <span class="keywordflow">return</span> <a class="code" href="classReplaceable.html#0daed956edc521be7725c78940954035">getChar32At</a>(offset);
<a name="l00253"></a>00253 }
<a name="l00254"></a>00254 
<a name="l00255"></a>00255 <span class="comment">// There is no rep.cpp, see unistr.cpp for Replaceable function implementations.</span>
<a name="l00256"></a>00256 
<a name="l00257"></a>00257 <a class="code" href="umachine_8h.html#951037cc9951ac3c70b527f8137f9f74">U_NAMESPACE_END</a>
<a name="l00258"></a>00258 
<a name="l00259"></a>00259 <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>