Sophie

Sophie

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

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: Replaceable Class Reference</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 id="current"><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
    <li><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="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
  </ul></div>
<h1>Replaceable Class Reference</h1><!-- doxytag: class="Replaceable" --><!-- doxytag: inherits="UObject" --><code><a class="el" href="classReplaceable.html">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="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="rep_8h-source.html">rep.h</a>&gt;</code>
<p>
<p>Inheritance diagram for Replaceable:
<p><center><img src="classReplaceable.png" usemap="#Replaceable_map" border="0" alt=""></center>
<map name="Replaceable_map">
<area href="classUObject.html" alt="UObject" shape="rect" coords="0,56,91,80">
<area href="classUMemory.html" alt="UMemory" shape="rect" coords="0,0,91,24">
<area href="classUnicodeString.html" alt="UnicodeString" shape="rect" coords="0,168,91,192">
</map>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#659ff93b79ba1ae4c7d61a9de24fe6c4">~Replaceable</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#659ff93b79ba1ae4c7d61a9de24fe6c4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#1547ffa5a536609358a7adbc7ac56b34">length</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of 16-bit code units in the text.  <a href="#1547ffa5a536609358a7adbc7ac56b34"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UChar&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#d25543d3ba77f1f9b8a8e42205610c2c">charAt</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> offset) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the 16-bit code unit at the given offset into the text.  <a href="#d25543d3ba77f1f9b8a8e42205610c2c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#6db9829f7e05480fcb925fc86de857c8">char32At</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> offset) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the 32-bit code point at the given 16-bit offset into the text.  <a href="#6db9829f7e05480fcb925fc86de857c8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#de15f29d25f66b82e2bf27b4495bbee4">extractBetween</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> start, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> limit, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;target) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copies characters in the range [<code>start</code>, <code>limit</code>) into the <a class="el" href="classUnicodeString.html">UnicodeString</a> <code>target</code>.  <a href="#de15f29d25f66b82e2bf27b4495bbee4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#88d07cf2f526016dc933576346df331a">handleReplaceBetween</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> start, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> limit, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;text)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Replaces a substring of this object with the given text.  <a href="#88d07cf2f526016dc933576346df331a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#39b60e62c2d43cbc4e7d506dde8f31a7">copy</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> start, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> limit, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> dest)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copies a substring of this object, retaining metadata.  <a href="#39b60e62c2d43cbc4e7d506dde8f31a7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#edce361260ea9494f8822a8f13bc6a57">hasMetaData</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if this object contains metadata.  <a href="#edce361260ea9494f8822a8f13bc6a57"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classReplaceable.html">Replaceable</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#f23a3a494c918fff888ecaadf428e731">clone</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clone this object, an instance of a subclass of <a class="el" href="classReplaceable.html">Replaceable</a>.  <a href="#f23a3a494c918fff888ecaadf428e731"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#21c68bcef4a7e195e06ae93e83ec68f6">Replaceable</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor.  <a href="#21c68bcef4a7e195e06ae93e83ec68f6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#eacec6eaad5f645656b2a4d397e9d189">getLength</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Virtual version of <a class="el" href="classReplaceable.html#1547ffa5a536609358a7adbc7ac56b34">length()</a>.  <a href="#eacec6eaad5f645656b2a4d397e9d189"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual UChar&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#bd9e32f621f6e02483fcf0527c9a6dfc">getCharAt</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> offset) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Virtual version of <a class="el" href="classReplaceable.html#d25543d3ba77f1f9b8a8e42205610c2c">charAt()</a>.  <a href="#bd9e32f621f6e02483fcf0527c9a6dfc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#0daed956edc521be7725c78940954035">getChar32At</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> offset) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Virtual version of <a class="el" href="classReplaceable.html#6db9829f7e05480fcb925fc86de857c8">char32At()</a>.  <a href="#0daed956edc521be7725c78940954035"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<code><a class="el" href="classReplaceable.html">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>
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="classReplaceable.html#6db9829f7e05480fcb925fc86de857c8">char32At()</a>. One example of metadata is style attributes; another is an edit history, marking each character with an author and revision number.<p>
An implicit aspect of the <code><a class="el" href="classReplaceable.html">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 <b>bold</b> font" has range (4, 8) replaced with "strong", then it becomes "the <b>strong</b> font".<p>
<code><a class="el" href="classReplaceable.html">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>
<code><a class="el" href="classReplaceable.html">Replaceable</a></code> also includes API to access characters in the string: <code><a class="el" href="classReplaceable.html#1547ffa5a536609358a7adbc7ac56b34">length()</a></code>, <code><a class="el" href="classReplaceable.html#d25543d3ba77f1f9b8a8e42205610c2c">charAt()</a></code>, <code><a class="el" href="classReplaceable.html#6db9829f7e05480fcb925fc86de857c8">char32At()</a></code>, and <code><a class="el" href="classReplaceable.html#de15f29d25f66b82e2bf27b4495bbee4">extractBetween()</a></code>.<p>
For a subclass to support metadata, typical behavior of <code>replace()</code> is the following: <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>
If this is not the behavior, the subclass should document any differences. <dl compact><dt><b>Author:</b></dt><dd>Alan Liu </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable000249">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>

<p>
Definition at line <a class="el" href="rep_8h-source.html#l00071">71</a> of file <a class="el" href="rep_8h-source.html">rep.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="659ff93b79ba1ae4c7d61a9de24fe6c4"></a><!-- doxytag: member="Replaceable::~Replaceable" ref="659ff93b79ba1ae4c7d61a9de24fe6c4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Replaceable::~Replaceable           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div><p>
<a class="anchor" name="21c68bcef4a7e195e06ae93e83ec68f6"></a><!-- doxytag: member="Replaceable::Replaceable" ref="21c68bcef4a7e195e06ae93e83ec68f6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Replaceable::Replaceable           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="6db9829f7e05480fcb925fc86de857c8"></a><!-- doxytag: member="Replaceable::char32At" ref="6db9829f7e05480fcb925fc86de857c8" args="(int32_t offset) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> Replaceable::char32At           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>offset</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the 32-bit code point at the given 16-bit offset into the text. 
<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 compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>offset</em>&nbsp;</td><td>an integer between 0 and <code><a class="el" href="classReplaceable.html#1547ffa5a536609358a7adbc7ac56b34">length()</a></code>-1 inclusive </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>32-bit code point of text at given offset </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable000253">Stable:</a></b></dt><dd>ICU 1.8 </dd></dl>

<p>
Reimplemented in <a class="el" href="classUnicodeString.html#c40c7f9cde3a017bbc70b9ba488d63d3">UnicodeString</a>.
<p>
Definition at line <a class="el" href="rep_8h-source.html#l00251">251</a> of file <a class="el" href="rep_8h-source.html">rep.h</a>.
<p>
References <a class="el" href="classReplaceable.html#0daed956edc521be7725c78940954035">getChar32At()</a>.
</div>
</div><p>
<a class="anchor" name="d25543d3ba77f1f9b8a8e42205610c2c"></a><!-- doxytag: member="Replaceable::charAt" ref="d25543d3ba77f1f9b8a8e42205610c2c" args="(int32_t offset) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UChar Replaceable::charAt           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>offset</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the 16-bit code unit at the given offset into the text. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>offset</em>&nbsp;</td><td>an integer between 0 and <code><a class="el" href="classReplaceable.html#1547ffa5a536609358a7adbc7ac56b34">length()</a></code>-1 inclusive </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>16-bit code unit of text at given offset </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable000252">Stable:</a></b></dt><dd>ICU 1.8 </dd></dl>

<p>
Reimplemented in <a class="el" href="classUnicodeString.html#3f74cbdbd68ef2a295a0619098a93a2b">UnicodeString</a>.
<p>
Definition at line <a class="el" href="rep_8h-source.html#l00246">246</a> of file <a class="el" href="rep_8h-source.html">rep.h</a>.
<p>
References <a class="el" href="classReplaceable.html#bd9e32f621f6e02483fcf0527c9a6dfc">getCharAt()</a>.
</div>
</div><p>
<a class="anchor" name="f23a3a494c918fff888ecaadf428e731"></a><!-- doxytag: member="Replaceable::clone" ref="f23a3a494c918fff888ecaadf428e731" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classReplaceable.html">Replaceable</a>* Replaceable::clone           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Clone this object, an instance of a subclass of <a class="el" href="classReplaceable.html">Replaceable</a>. 
<p>
Clones can be used concurrently in multiple threads. If a subclass does not implement <a class="el" href="classReplaceable.html#f23a3a494c918fff888ecaadf428e731">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="classReplaceable.html">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 compact><dt><b>Returns:</b></dt><dd>a clone of this object</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classUObject.html#60f3fba82b9d7edfe3d3f9d423ab826d">getDynamicClassID</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable000258">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

<p>
Reimplemented in <a class="el" href="classUnicodeString.html#6e0ce0d3e1e7b0b044895262522bcbba">UnicodeString</a>.
</div>
</div><p>
<a class="anchor" name="39b60e62c2d43cbc4e7d506dde8f31a7"></a><!-- doxytag: member="Replaceable::copy" ref="39b60e62c2d43cbc4e7d506dde8f31a7" args="(int32_t start, int32_t limit, int32_t dest)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Replaceable::copy           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>limit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>dest</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Copies a substring of this object, retaining metadata. 
<p>
This method is used to duplicate or reorder substrings. The destination index must not overlap the source range.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>start</em>&nbsp;</td><td>the beginning index, inclusive; <code>0 &lt;= start &lt;= limit</code>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>limit</em>&nbsp;</td><td>the ending index, exclusive; <code>start &lt;= limit &lt;= <a class="el" href="classReplaceable.html#1547ffa5a536609358a7adbc7ac56b34">length()</a></code>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dest</em>&nbsp;</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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable000256">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implemented in <a class="el" href="classUnicodeString.html#7a53a6613c212d8c29f180d1ade05e62">UnicodeString</a>.
</div>
</div><p>
<a class="anchor" name="de15f29d25f66b82e2bf27b4495bbee4"></a><!-- doxytag: member="Replaceable::extractBetween" ref="de15f29d25f66b82e2bf27b4495bbee4" args="(int32_t start, int32_t limit, UnicodeString &amp;target) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Replaceable::extractBetween           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>limit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>target</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const<code> [pure virtual]</code></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="classUnicodeString.html">UnicodeString</a> <code>target</code>. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>start</em>&nbsp;</td><td>offset of first character which will be copied </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>limit</em>&nbsp;</td><td>offset immediately following the last character to be copied </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>target</em>&nbsp;</td><td><a class="el" href="classUnicodeString.html">UnicodeString</a> into which to copy characters. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A reference to <code>target</code> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable000254">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl>

<p>
Implemented in <a class="el" href="classUnicodeString.html#d8946e6ca397f9b37a60a6a3c1a2ab93">UnicodeString</a>.
</div>
</div><p>
<a class="anchor" name="0daed956edc521be7725c78940954035"></a><!-- doxytag: member="Replaceable::getChar32At" ref="0daed956edc521be7725c78940954035" args="(int32_t offset) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a5c18ea10e60c576fe5ec420a7ef7b28">UChar32</a> Replaceable::getChar32At           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>offset</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [protected, pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Virtual version of <a class="el" href="classReplaceable.html#6db9829f7e05480fcb925fc86de857c8">char32At()</a>. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable000262">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>
Implemented in <a class="el" href="classUnicodeString.html#dd26310e2cc39ed5d9a29e9071de172c">UnicodeString</a>.
<p>
Referenced by <a class="el" href="rep_8h-source.html#l00251">char32At()</a>.
</div>
</div><p>
<a class="anchor" name="bd9e32f621f6e02483fcf0527c9a6dfc"></a><!-- doxytag: member="Replaceable::getCharAt" ref="bd9e32f621f6e02483fcf0527c9a6dfc" args="(int32_t offset) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual UChar Replaceable::getCharAt           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>offset</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [protected, pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Virtual version of <a class="el" href="classReplaceable.html#d25543d3ba77f1f9b8a8e42205610c2c">charAt()</a>. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable000261">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>
Implemented in <a class="el" href="classUnicodeString.html#b269ab27e80e134218047d7cd64d47d7">UnicodeString</a>.
<p>
Referenced by <a class="el" href="rep_8h-source.html#l00246">charAt()</a>.
</div>
</div><p>
<a class="anchor" name="eacec6eaad5f645656b2a4d397e9d189"></a><!-- doxytag: member="Replaceable::getLength" ref="eacec6eaad5f645656b2a4d397e9d189" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> Replaceable::getLength           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [protected, pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Virtual version of <a class="el" href="classReplaceable.html#1547ffa5a536609358a7adbc7ac56b34">length()</a>. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable000260">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>
Implemented in <a class="el" href="classUnicodeString.html#3dfc2d6495d038661716b9305a1d07ac">UnicodeString</a>.
<p>
Referenced by <a class="el" href="rep_8h-source.html#l00241">length()</a>.
</div>
</div><p>
<a class="anchor" name="88d07cf2f526016dc933576346df331a"></a><!-- doxytag: member="Replaceable::handleReplaceBetween" ref="88d07cf2f526016dc933576346df331a" args="(int32_t start, int32_t limit, const UnicodeString &amp;text)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Replaceable::handleReplaceBetween           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>limit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Replaces a substring of this object with the given text. 
<p>
If the characters being replaced have metadata, the new characters that replace them should be given the same metadata.<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. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>start</em>&nbsp;</td><td>the beginning index, inclusive; <code>0 &lt;= start &lt;= limit</code>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>limit</em>&nbsp;</td><td>the ending index, exclusive; <code>start &lt;= limit &lt;= <a class="el" href="classReplaceable.html#1547ffa5a536609358a7adbc7ac56b34">length()</a></code>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>the text to replace characters <code>start</code> to <code>limit - 1</code> </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable000255">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implemented in <a class="el" href="classUnicodeString.html#ac2649be62ebb23c87a0c7dd81f3e8f1">UnicodeString</a>.
</div>
</div><p>
<a class="anchor" name="edce361260ea9494f8822a8f13bc6a57"></a><!-- doxytag: member="Replaceable::hasMetaData" ref="edce361260ea9494f8822a8f13bc6a57" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> Replaceable::hasMetaData           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns true if this object contains metadata. 
<p>
If a <a class="el" href="classReplaceable.html">Replaceable</a> object has metadata, calls to the <a class="el" href="classReplaceable.html">Replaceable</a> API must be made so as to preserve metadata. If it does not, calls to the <a class="el" href="classReplaceable.html">Replaceable</a> API may be optimized to improve performance. The default implementation returns true. <dl compact><dt><b>Returns:</b></dt><dd>true if this object contains metadata </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable000257">Stable:</a></b></dt><dd>ICU 2.2 </dd></dl>

<p>
Reimplemented in <a class="el" href="classUnicodeString.html#ea74665aaf126c1fc6ee7bfaca1f1c7b">UnicodeString</a>.
</div>
</div><p>
<a class="anchor" name="1547ffa5a536609358a7adbc7ac56b34"></a><!-- doxytag: member="Replaceable::length" ref="1547ffa5a536609358a7adbc7ac56b34" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> Replaceable::length           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>
Reimplemented in <a class="el" href="classUnicodeString.html#a772ced3c5e5c737d07a05adb3818f37">UnicodeString</a>.
<p>
Definition at line <a class="el" href="rep_8h-source.html#l00241">241</a> of file <a class="el" href="rep_8h-source.html">rep.h</a>.
<p>
References <a class="el" href="classReplaceable.html#eacec6eaad5f645656b2a4d397e9d189">getLength()</a>.
</div>
</div><p>
<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></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Dec 13 17:29:55 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>