Sophie

Sophie

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

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: icu::Replaceable Class 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 class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceicu.html">icu</a></li><li class="navelem"><a class="el" href="classicu_1_1Replaceable.html">Replaceable</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">icu::Replaceable Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><code><a class="el" href="classicu_1_1Replaceable.html" title="Replaceable is an abstract base class representing a string of characters that supports the replaceme...">Replaceable</a></code> is an abstract base class representing a string of characters that supports the replacement of a range of itself with a new string of characters.  
 <a href="classicu_1_1Replaceable.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="rep_8h_source.html">rep.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for icu::Replaceable:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classicu_1_1Replaceable.png" usemap="#icu::Replaceable_map" alt=""/>
  <map id="icu::Replaceable_map" name="icu::Replaceable_map">
<area href="classicu_1_1UObject.html" title="UObject is the common ICU &quot;boilerplate&quot; class. " alt="icu::UObject" shape="rect" coords="0,56,114,80"/>
<area href="classicu_1_1UMemory.html" title="UMemory is the common ICU base class. " alt="icu::UMemory" shape="rect" coords="0,0,114,24"/>
<area href="classicu_1_1UnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function..." alt="icu::UnicodeString" shape="rect" coords="0,168,114,192"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0e69ea359293620c6bd14c35b53624f2"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Replaceable.html#a0e69ea359293620c6bd14c35b53624f2">~Replaceable</a> ()</td></tr>
<tr class="memdesc:a0e69ea359293620c6bd14c35b53624f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a0e69ea359293620c6bd14c35b53624f2">More...</a><br /></td></tr>
<tr class="separator:a0e69ea359293620c6bd14c35b53624f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a211e81826a4d281e3206b87a17f37410"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Replaceable.html#a211e81826a4d281e3206b87a17f37410">length</a> () const </td></tr>
<tr class="memdesc:a211e81826a4d281e3206b87a17f37410"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of 16-bit code units in the text.  <a href="#a211e81826a4d281e3206b87a17f37410">More...</a><br /></td></tr>
<tr class="separator:a211e81826a4d281e3206b87a17f37410"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaaf1952118166c577ce3109081978528"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Replaceable.html#aaaf1952118166c577ce3109081978528">charAt</a> (int32_t offset) const </td></tr>
<tr class="memdesc:aaaf1952118166c577ce3109081978528"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the 16-bit code unit at the given offset into the text.  <a href="#aaaf1952118166c577ce3109081978528">More...</a><br /></td></tr>
<tr class="separator:aaaf1952118166c577ce3109081978528"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac81319995a4ca8136ff2f618e8b9147e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a09fff5c3b5a5b015324dc3ec3cf92809">UChar32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Replaceable.html#ac81319995a4ca8136ff2f618e8b9147e">char32At</a> (int32_t offset) const </td></tr>
<tr class="memdesc:ac81319995a4ca8136ff2f618e8b9147e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the 32-bit code point at the given 16-bit offset into the text.  <a href="#ac81319995a4ca8136ff2f618e8b9147e">More...</a><br /></td></tr>
<tr class="separator:ac81319995a4ca8136ff2f618e8b9147e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1374d0ab6fd6a2b62ced601e9647fe27"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Replaceable.html#a1374d0ab6fd6a2b62ced601e9647fe27">extractBetween</a> (int32_t start, int32_t limit, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;target) const =0</td></tr>
<tr class="memdesc:a1374d0ab6fd6a2b62ced601e9647fe27"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies characters in the range [<code>start</code>, <code>limit</code>) into the <a class="el" href="classicu_1_1UnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a> <code>target</code>.  <a href="#a1374d0ab6fd6a2b62ced601e9647fe27">More...</a><br /></td></tr>
<tr class="separator:a1374d0ab6fd6a2b62ced601e9647fe27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac71982bdd7e6be81429d99c767fa76c2"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Replaceable.html#ac71982bdd7e6be81429d99c767fa76c2">handleReplaceBetween</a> (int32_t start, int32_t limit, const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;text)=0</td></tr>
<tr class="memdesc:ac71982bdd7e6be81429d99c767fa76c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Replaces a substring of this object with the given text.  <a href="#ac71982bdd7e6be81429d99c767fa76c2">More...</a><br /></td></tr>
<tr class="separator:ac71982bdd7e6be81429d99c767fa76c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ebc7bf1e41825e1a92d81e8e947d4c4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Replaceable.html#a6ebc7bf1e41825e1a92d81e8e947d4c4">copy</a> (int32_t start, int32_t limit, int32_t dest)=0</td></tr>
<tr class="memdesc:a6ebc7bf1e41825e1a92d81e8e947d4c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies a substring of this object, retaining metadata.  <a href="#a6ebc7bf1e41825e1a92d81e8e947d4c4">More...</a><br /></td></tr>
<tr class="separator:a6ebc7bf1e41825e1a92d81e8e947d4c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4b27e2ef455ac7a9fcbdb601945766f"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Replaceable.html#ac4b27e2ef455ac7a9fcbdb601945766f">hasMetaData</a> () const </td></tr>
<tr class="memdesc:ac4b27e2ef455ac7a9fcbdb601945766f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if this object contains metadata.  <a href="#ac4b27e2ef455ac7a9fcbdb601945766f">More...</a><br /></td></tr>
<tr class="separator:ac4b27e2ef455ac7a9fcbdb601945766f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9b79f5c540200af9a91544814ec92ea"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classicu_1_1Replaceable.html">Replaceable</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Replaceable.html#ac9b79f5c540200af9a91544814ec92ea">clone</a> () const </td></tr>
<tr class="memdesc:ac9b79f5c540200af9a91544814ec92ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clone this object, an instance of a subclass of <a class="el" href="classicu_1_1Replaceable.html" title="Replaceable is an abstract base class representing a string of characters that supports the replaceme...">Replaceable</a>.  <a href="#ac9b79f5c540200af9a91544814ec92ea">More...</a><br /></td></tr>
<tr class="separator:ac9b79f5c540200af9a91544814ec92ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classicu_1_1UObject"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classicu_1_1UObject')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classicu_1_1UObject.html">icu::UObject</a></td></tr>
<tr class="memitem:af10026497704f510d3d1f2eff50acb18 inherit pub_methods_classicu_1_1UObject"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1UObject.html#af10026497704f510d3d1f2eff50acb18">~UObject</a> ()</td></tr>
<tr class="memdesc:af10026497704f510d3d1f2eff50acb18 inherit pub_methods_classicu_1_1UObject"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#af10026497704f510d3d1f2eff50acb18">More...</a><br /></td></tr>
<tr class="separator:af10026497704f510d3d1f2eff50acb18 inherit pub_methods_classicu_1_1UObject"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1aa93096e880907080b503ff1fb0f8bc inherit pub_methods_classicu_1_1UObject"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="uobject_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1UObject.html#a1aa93096e880907080b503ff1fb0f8bc">getDynamicClassID</a> () const </td></tr>
<tr class="memdesc:a1aa93096e880907080b503ff1fb0f8bc inherit pub_methods_classicu_1_1UObject"><td class="mdescLeft">&#160;</td><td class="mdescRight">ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.  <a href="#a1aa93096e880907080b503ff1fb0f8bc">More...</a><br /></td></tr>
<tr class="separator:a1aa93096e880907080b503ff1fb0f8bc inherit pub_methods_classicu_1_1UObject"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:ade8a3f93d1e3fc79741a837d6f3d4710"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Replaceable.html#ade8a3f93d1e3fc79741a837d6f3d4710">Replaceable</a> ()</td></tr>
<tr class="memdesc:ade8a3f93d1e3fc79741a837d6f3d4710"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#ade8a3f93d1e3fc79741a837d6f3d4710">More...</a><br /></td></tr>
<tr class="separator:ade8a3f93d1e3fc79741a837d6f3d4710"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2e659d2e41201725a22fa5970e5b87f"><td class="memItemLeft" align="right" valign="top">virtual int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Replaceable.html#ae2e659d2e41201725a22fa5970e5b87f">getLength</a> () const =0</td></tr>
<tr class="memdesc:ae2e659d2e41201725a22fa5970e5b87f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual version of <a class="el" href="classicu_1_1Replaceable.html#a211e81826a4d281e3206b87a17f37410" title="Returns the number of 16-bit code units in the text. ">length()</a>.  <a href="#ae2e659d2e41201725a22fa5970e5b87f">More...</a><br /></td></tr>
<tr class="separator:ae2e659d2e41201725a22fa5970e5b87f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef535fbb1d78a8d8c06434bc20cd0d84"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Replaceable.html#aef535fbb1d78a8d8c06434bc20cd0d84">getCharAt</a> (int32_t offset) const =0</td></tr>
<tr class="memdesc:aef535fbb1d78a8d8c06434bc20cd0d84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual version of <a class="el" href="classicu_1_1Replaceable.html#aaaf1952118166c577ce3109081978528" title="Returns the 16-bit code unit at the given offset into the text. ">charAt()</a>.  <a href="#aef535fbb1d78a8d8c06434bc20cd0d84">More...</a><br /></td></tr>
<tr class="separator:aef535fbb1d78a8d8c06434bc20cd0d84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24f0ef0c8ee51cadfd83490347e2d24c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a09fff5c3b5a5b015324dc3ec3cf92809">UChar32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Replaceable.html#a24f0ef0c8ee51cadfd83490347e2d24c">getChar32At</a> (int32_t offset) const =0</td></tr>
<tr class="memdesc:a24f0ef0c8ee51cadfd83490347e2d24c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual version of <a class="el" href="classicu_1_1Replaceable.html#ac81319995a4ca8136ff2f618e8b9147e" title="Returns the 32-bit code point at the given 16-bit offset into the text. ">char32At()</a>.  <a href="#a24f0ef0c8ee51cadfd83490347e2d24c">More...</a><br /></td></tr>
<tr class="separator:a24f0ef0c8ee51cadfd83490347e2d24c"><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><code><a class="el" href="classicu_1_1Replaceable.html" title="Replaceable is an abstract base class representing a string of characters that supports the replaceme...">Replaceable</a></code> is an abstract base class representing a string of characters that supports the replacement of a range of itself with a new string of characters. </p>
<p>It is used by APIs that change a piece of text while retaining metadata. Metadata is data other than the Unicode characters returned by <a class="el" href="classicu_1_1Replaceable.html#ac81319995a4ca8136ff2f618e8b9147e" title="Returns the 32-bit code point at the given 16-bit offset into the text. ">char32At()</a>. One example of metadata is style attributes; another is an edit history, marking each character with an author and revision number.</p>
<p>An implicit aspect of the <code><a class="el" href="classicu_1_1Replaceable.html" title="Replaceable is an abstract base class representing a string of characters that supports the replaceme...">Replaceable</a></code> API is that during a replace operation, new characters take on the metadata of the old characters. For example, if the string "the &lt;b&gt;bold&lt;/b&gt;
font" has range (4, 8) replaced with "strong", then it becomes "the
&lt;b&gt;strong&lt;/b&gt; font".</p>
<p><code><a class="el" href="classicu_1_1Replaceable.html" title="Replaceable is an abstract base class representing a string of characters that supports the replaceme...">Replaceable</a></code> specifies ranges using a start offset and a limit offset. The range of characters thus specified includes the characters at offset start..limit-1. That is, the start offset is inclusive, and the limit offset is exclusive.</p>
<p><code><a class="el" href="classicu_1_1Replaceable.html" title="Replaceable is an abstract base class representing a string of characters that supports the replaceme...">Replaceable</a></code> also includes API to access characters in the string: <code><a class="el" href="classicu_1_1Replaceable.html#a211e81826a4d281e3206b87a17f37410" title="Returns the number of 16-bit code units in the text. ">length()</a></code>, <code><a class="el" href="classicu_1_1Replaceable.html#aaaf1952118166c577ce3109081978528" title="Returns the 16-bit code unit at the given offset into the text. ">charAt()</a></code>, <code><a class="el" href="classicu_1_1Replaceable.html#ac81319995a4ca8136ff2f618e8b9147e" title="Returns the 32-bit code point at the given 16-bit offset into the text. ">char32At()</a></code>, and <code><a class="el" href="classicu_1_1Replaceable.html#a1374d0ab6fd6a2b62ced601e9647fe27" title="Copies characters in the range [start, limit) into the UnicodeString target. ">extractBetween()</a></code>.</p>
<p>For a subclass to support metadata, typical behavior of <code>replace()</code> is the following: </p><ul>
<li>
Set the metadata of the new text to the metadata of the first character replaced </li>
<li>
If no characters are replaced, use the metadata of the previous character </li>
<li>
If there is no previous character (i.e. start == 0), use the following character </li>
<li>
If there is no following character (i.e. the replaceable was empty), use default metadata.<br />
 </li>
<li>
If the code point U+FFFF is seen, it should be interpreted as a special marker having no metadata</li>
<li>
</li>
</ul>
<p>If this is not the behavior, the subclass should document any differences. </p><dl class="section author"><dt>Author</dt><dd>Alan Liu </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000515">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="rep_8h_source.html#l00073">73</a> of file <a class="el" href="rep_8h_source.html">rep.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a0e69ea359293620c6bd14c35b53624f2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual icu::Replaceable::~Replaceable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Destructor. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000516">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ade8a3f93d1e3fc79741a837d6f3d4710"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">icu::Replaceable::Replaceable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Default constructor. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000525">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>Definition at line <a class="el" href="rep_8h_source.html#l00242">242</a> of file <a class="el" href="rep_8h_source.html">rep.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ac81319995a4ca8136ff2f618e8b9147e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a09fff5c3b5a5b015324dc3ec3cf92809">UChar32</a> icu::Replaceable::char32At </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>offset</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the 32-bit code point at the given 16-bit offset into the text. </p>
<p>This assumes the text is stored as 16-bit code units with surrogate pairs intermixed. If the offset of a leading or trailing code unit of a surrogate pair is given, return the code point of the surrogate pair.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">offset</td><td>an integer between 0 and <code><a class="el" href="classicu_1_1Replaceable.html#a211e81826a4d281e3206b87a17f37410" title="Returns the number of 16-bit code units in the text. ">length()</a></code>-1 inclusive </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>32-bit code point of text at given offset </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000519">Stable:</a></b></dt><dd>ICU 1.8 </dd></dl>

<p>Definition at line <a class="el" href="rep_8h_source.html#l00255">255</a> of file <a class="el" href="rep_8h_source.html">rep.h</a>.</p>

<p>References <a class="el" href="uversion_8h_source.html#l00132">U_NAMESPACE_END</a>.</p>

</div>
</div>
<a class="anchor" id="aaaf1952118166c577ce3109081978528"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> icu::Replaceable::charAt </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>offset</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the 16-bit code unit at the given offset into the text. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">offset</td><td>an integer between 0 and <code><a class="el" href="classicu_1_1Replaceable.html#a211e81826a4d281e3206b87a17f37410" title="Returns the number of 16-bit code units in the text. ">length()</a></code>-1 inclusive </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>16-bit code unit of text at given offset </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000518">Stable:</a></b></dt><dd>ICU 1.8 </dd></dl>

<p>Definition at line <a class="el" href="rep_8h_source.html#l00250">250</a> of file <a class="el" href="rep_8h_source.html">rep.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac9b79f5c540200af9a91544814ec92ea"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classicu_1_1Replaceable.html">Replaceable</a>* icu::Replaceable::clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Clone this object, an instance of a subclass of <a class="el" href="classicu_1_1Replaceable.html" title="Replaceable is an abstract base class representing a string of characters that supports the replaceme...">Replaceable</a>. </p>
<p>Clones can be used concurrently in multiple threads. If a subclass does not implement <a class="el" href="classicu_1_1Replaceable.html#ac9b79f5c540200af9a91544814ec92ea" title="Clone this object, an instance of a subclass of Replaceable. ">clone()</a>, or if an error occurs, then NULL is returned. The clone functions in all subclasses return a pointer to a <a class="el" href="classicu_1_1Replaceable.html" title="Replaceable is an abstract base class representing a string of characters that supports the replaceme...">Replaceable</a> because some compilers do not support covariant (same-as-this) return types; cast to the appropriate subclass if necessary. The caller must delete the clone.</p>
<dl class="section return"><dt>Returns</dt><dd>a clone of this object</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classicu_1_1UObject.html#a1aa93096e880907080b503ff1fb0f8bc" title="ICU4C &quot;poor man&#39;s RTTI&quot;, returns a UClassID for the actual ICU class. ">getDynamicClassID</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000524">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

<p>Reimplemented in <a class="el" href="classicu_1_1UnicodeString.html#aa4a77801ddc30bc20e51ea9984456886">icu::UnicodeString</a>.</p>

</div>
</div>
<a class="anchor" id="a6ebc7bf1e41825e1a92d81e8e947d4c4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void icu::Replaceable::copy </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>limit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>dest</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Copies a substring of this object, retaining metadata. </p>
<p>This method is used to duplicate or reorder substrings. The destination index must not overlap the source range.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">start</td><td>the beginning index, inclusive; <code>0 &lt;= start &lt;= limit</code>. </td></tr>
    <tr><td class="paramname">limit</td><td>the ending index, exclusive; <code>start &lt;= limit &lt;= <a class="el" href="classicu_1_1Replaceable.html#a211e81826a4d281e3206b87a17f37410" title="Returns the number of 16-bit code units in the text. ">length()</a></code>. </td></tr>
    <tr><td class="paramname">dest</td><td>the destination index. The characters from <code>start..limit-1</code> will be copied to <code>dest</code>. Implementations of this method may assume that <code>dest &lt;= start || dest &gt;= limit</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000522">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implemented in <a class="el" href="classicu_1_1UnicodeString.html#a8d49310e70623e153cac8da36a37e9c3">icu::UnicodeString</a>.</p>

</div>
</div>
<a class="anchor" id="a1374d0ab6fd6a2b62ced601e9647fe27"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void icu::Replaceable::extractBetween </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>limit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>target</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Copies characters in the range [<code>start</code>, <code>limit</code>) into the <a class="el" href="classicu_1_1UnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a> <code>target</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">start</td><td>offset of first character which will be copied </td></tr>
    <tr><td class="paramname">limit</td><td>offset immediately following the last character to be copied </td></tr>
    <tr><td class="paramname">target</td><td><a class="el" href="classicu_1_1UnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a> into which to copy characters. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A reference to <code>target</code> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000520">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl>

<p>Implemented in <a class="el" href="classicu_1_1UnicodeString.html#a8a4b6824a6b38703f035896b5314de78">icu::UnicodeString</a>.</p>

</div>
</div>
<a class="anchor" id="a24f0ef0c8ee51cadfd83490347e2d24c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a09fff5c3b5a5b015324dc3ec3cf92809">UChar32</a> icu::Replaceable::getChar32At </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>offset</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Virtual version of <a class="el" href="classicu_1_1Replaceable.html#ac81319995a4ca8136ff2f618e8b9147e" title="Returns the 32-bit code point at the given 16-bit offset into the text. ">char32At()</a>. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000528">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>Implemented in <a class="el" href="classicu_1_1UnicodeString.html#abade123ad665cf9db78215781463d95b">icu::UnicodeString</a>.</p>

</div>
</div>
<a class="anchor" id="aef535fbb1d78a8d8c06434bc20cd0d84"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> icu::Replaceable::getCharAt </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>offset</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Virtual version of <a class="el" href="classicu_1_1Replaceable.html#aaaf1952118166c577ce3109081978528" title="Returns the 16-bit code unit at the given offset into the text. ">charAt()</a>. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000527">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>Implemented in <a class="el" href="classicu_1_1UnicodeString.html#abadffc18ee9f2df7ce6d350d6984bb7d">icu::UnicodeString</a>.</p>

</div>
</div>
<a class="anchor" id="ae2e659d2e41201725a22fa5970e5b87f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t icu::Replaceable::getLength </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Virtual version of <a class="el" href="classicu_1_1Replaceable.html#a211e81826a4d281e3206b87a17f37410" title="Returns the number of 16-bit code units in the text. ">length()</a>. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000526">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>Implemented in <a class="el" href="classicu_1_1UnicodeString.html#ad826add539d94c79d7a344f895b6e3ca">icu::UnicodeString</a>.</p>

</div>
</div>
<a class="anchor" id="ac71982bdd7e6be81429d99c767fa76c2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void icu::Replaceable::handleReplaceBetween </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>limit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Replaces a substring of this object with the given text. </p>
<p>If the characters being replaced have metadata, the new characters that replace them should be given the same metadata.</p>
<p>Subclasses must ensure that if the text between start and limit is equal to the replacement text, that replace has no effect. That is, any metadata should be unaffected. In addition, subclasses are encouraged to check for initial and trailing identical characters, and make a smaller replacement if possible. This will preserve as much metadata as possible. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">start</td><td>the beginning index, inclusive; <code>0 &lt;= start &lt;= limit</code>. </td></tr>
    <tr><td class="paramname">limit</td><td>the ending index, exclusive; <code>start &lt;= limit &lt;= <a class="el" href="classicu_1_1Replaceable.html#a211e81826a4d281e3206b87a17f37410" title="Returns the number of 16-bit code units in the text. ">length()</a></code>. </td></tr>
    <tr><td class="paramname">text</td><td>the text to replace characters <code>start</code> to <code>limit - 1</code> </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000521">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implemented in <a class="el" href="classicu_1_1UnicodeString.html#a7c85565c3130f6964a0a3bc9a6304f68">icu::UnicodeString</a>.</p>

</div>
</div>
<a class="anchor" id="ac4b27e2ef455ac7a9fcbdb601945766f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> icu::Replaceable::hasMetaData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if this object contains metadata. </p>
<p>If a <a class="el" href="classicu_1_1Replaceable.html" title="Replaceable is an abstract base class representing a string of characters that supports the replaceme...">Replaceable</a> object has metadata, calls to the <a class="el" href="classicu_1_1Replaceable.html" title="Replaceable is an abstract base class representing a string of characters that supports the replaceme...">Replaceable</a> API must be made so as to preserve metadata. If it does not, calls to the <a class="el" href="classicu_1_1Replaceable.html" title="Replaceable is an abstract base class representing a string of characters that supports the replaceme...">Replaceable</a> API may be optimized to improve performance. The default implementation returns true. </p><dl class="section return"><dt>Returns</dt><dd>true if this object contains metadata </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000523">Stable:</a></b></dt><dd>ICU 2.2 </dd></dl>

<p>Reimplemented in <a class="el" href="classicu_1_1UnicodeString.html#a9ea0605be3fcbfe25d360652b9b3a57a">icu::UnicodeString</a>.</p>

</div>
</div>
<a class="anchor" id="a211e81826a4d281e3206b87a17f37410"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int32_t icu::Replaceable::length </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the number of 16-bit code units in the text. </p>
<dl class="section return"><dt>Returns</dt><dd>number of 16-bit code units in text </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000517">Stable:</a></b></dt><dd>ICU 1.8 </dd></dl>

<p>Definition at line <a class="el" href="rep_8h_source.html#l00245">245</a> of file <a class="el" href="rep_8h_source.html">rep.h</a>.</p>

<p>Referenced by <a class="el" href="unistr_8h_source.html#l01733">icu::UnicodeString::toUTF8String()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="rep_8h_source.html">rep.h</a></li>
</ul>
</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>