Server IP : 103.119.228.120 / Your IP : 3.149.214.223 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/ssl/local/ssl/local/easy/share/doc/easy-libicu-doc-4.0.1/ |
Upload File : |
<!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.5"/> <title>ICU 4.0.1: 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="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </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 style="padding-left: 0.5em;"> <div id="projectname">ICU 4.0.1 </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.5 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="classes.html"><span>Data Structure Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> </div> <div class="headertitle"> <div class="title">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="classReplaceable.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="classReplaceable.html#details">More...</a></p> <p><code>#include <<a class="el" href="rep_8h_source.html">rep.h</a>></code></p> <div class="dynheader"> Inheritance diagram for Replaceable:</div> <div class="dyncontent"> <div class="center"> <img src="classReplaceable.png" usemap="#Replaceable_map" alt=""/> <map id="Replaceable_map" name="Replaceable_map"> <area href="classUObject.html" title="UObject is the common ICU "boilerplate" class. " alt="UObject" shape="rect" coords="0,56,91,80"/> <area href="classUMemory.html" title="UMemory is the common ICU base class. " alt="UMemory" shape="rect" coords="0,0,91,24"/> <area href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function..." alt="UnicodeString" shape="rect" coords="0,168,91,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:a1235bdf1712cb754c9d591ed399af367"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#a1235bdf1712cb754c9d591ed399af367">~Replaceable</a> ()</td></tr> <tr class="memdesc:a1235bdf1712cb754c9d591ed399af367"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a1235bdf1712cb754c9d591ed399af367">More...</a><br/></td></tr> <tr class="separator:a1235bdf1712cb754c9d591ed399af367"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a81c2af838cfaf3c2a0d46b7fa727e8d0"><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#a81c2af838cfaf3c2a0d46b7fa727e8d0">length</a> () const </td></tr> <tr class="memdesc:a81c2af838cfaf3c2a0d46b7fa727e8d0"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of 16-bit code units in the text. <a href="#a81c2af838cfaf3c2a0d46b7fa727e8d0">More...</a><br/></td></tr> <tr class="separator:a81c2af838cfaf3c2a0d46b7fa727e8d0"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a78909dd61599c6f2d8af7a9d3bf5dd0f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#a78909dd61599c6f2d8af7a9d3bf5dd0f">charAt</a> (int32_t offset) const </td></tr> <tr class="memdesc:a78909dd61599c6f2d8af7a9d3bf5dd0f"><td class="mdescLeft"> </td><td class="mdescRight">Returns the 16-bit code unit at the given offset into the text. <a href="#a78909dd61599c6f2d8af7a9d3bf5dd0f">More...</a><br/></td></tr> <tr class="separator:a78909dd61599c6f2d8af7a9d3bf5dd0f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac7e972cbbe070b5fb1d0f824d2badb2c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a09fff5c3b5a5b015324dc3ec3cf92809">UChar32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#ac7e972cbbe070b5fb1d0f824d2badb2c">char32At</a> (int32_t offset) const </td></tr> <tr class="memdesc:ac7e972cbbe070b5fb1d0f824d2badb2c"><td class="mdescLeft"> </td><td class="mdescRight">Returns the 32-bit code point at the given 16-bit offset into the text. <a href="#ac7e972cbbe070b5fb1d0f824d2badb2c">More...</a><br/></td></tr> <tr class="separator:ac7e972cbbe070b5fb1d0f824d2badb2c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:abdf76adaff91c3310a70ae4297734bf4"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#abdf76adaff91c3310a70ae4297734bf4">extractBetween</a> (int32_t start, int32_t limit, <a class="el" href="classUnicodeString.html">UnicodeString</a> &target) const =0</td></tr> <tr class="memdesc:abdf76adaff91c3310a70ae4297734bf4"><td class="mdescLeft"> </td><td class="mdescRight">Copies characters in the range [<code>start</code>, <code>limit</code>) into the <a class="el" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a> <code>target</code>. <a href="#abdf76adaff91c3310a70ae4297734bf4">More...</a><br/></td></tr> <tr class="separator:abdf76adaff91c3310a70ae4297734bf4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae403fe2b8d99c4dd1081417d77ca1e99"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#ae403fe2b8d99c4dd1081417d77ca1e99">handleReplaceBetween</a> (int32_t start, int32_t limit, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &text)=0</td></tr> <tr class="memdesc:ae403fe2b8d99c4dd1081417d77ca1e99"><td class="mdescLeft"> </td><td class="mdescRight">Replaces a substring of this object with the given text. <a href="#ae403fe2b8d99c4dd1081417d77ca1e99">More...</a><br/></td></tr> <tr class="separator:ae403fe2b8d99c4dd1081417d77ca1e99"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa99cf49af5401c5bc89cd6894c67e2e8"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#aa99cf49af5401c5bc89cd6894c67e2e8">copy</a> (int32_t start, int32_t limit, int32_t dest)=0</td></tr> <tr class="memdesc:aa99cf49af5401c5bc89cd6894c67e2e8"><td class="mdescLeft"> </td><td class="mdescRight">Copies a substring of this object, retaining metadata. <a href="#aa99cf49af5401c5bc89cd6894c67e2e8">More...</a><br/></td></tr> <tr class="separator:aa99cf49af5401c5bc89cd6894c67e2e8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad4ae052a7be93bb0a69a6a55ff45ca43"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#ad4ae052a7be93bb0a69a6a55ff45ca43">hasMetaData</a> () const </td></tr> <tr class="memdesc:ad4ae052a7be93bb0a69a6a55ff45ca43"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if this object contains metadata. <a href="#ad4ae052a7be93bb0a69a6a55ff45ca43">More...</a><br/></td></tr> <tr class="separator:ad4ae052a7be93bb0a69a6a55ff45ca43"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6e976bb4e1517d753fed1ea82539657b"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classReplaceable.html">Replaceable</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#a6e976bb4e1517d753fed1ea82539657b">clone</a> () const </td></tr> <tr class="memdesc:a6e976bb4e1517d753fed1ea82539657b"><td class="mdescLeft"> </td><td class="mdescRight">Clone this object, an instance of a subclass of <a class="el" href="classReplaceable.html" title="Replaceable is an abstract base class representing a string of characters that supports the replaceme...">Replaceable</a>. <a href="#a6e976bb4e1517d753fed1ea82539657b">More...</a><br/></td></tr> <tr class="separator:a6e976bb4e1517d753fed1ea82539657b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_classUObject"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classUObject')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classUObject.html">UObject</a></td></tr> <tr class="memitem:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classUObject.html#ace22cf29a90641ef43350deae5bedb85">~UObject</a> ()</td></tr> <tr class="memdesc:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ace22cf29a90641ef43350deae5bedb85">More...</a><br/></td></tr> <tr class="separator:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9b1acc95efd89cb86ec31f2dc947a262 inherit pub_methods_classUObject"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUObject.html#a9b1acc95efd89cb86ec31f2dc947a262">getDynamicClassID</a> () const =0</td></tr> <tr class="memdesc:a9b1acc95efd89cb86ec31f2dc947a262 inherit pub_methods_classUObject"><td class="mdescLeft"> </td><td class="mdescRight">ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. <a href="#a9b1acc95efd89cb86ec31f2dc947a262">More...</a><br/></td></tr> <tr class="separator:a9b1acc95efd89cb86ec31f2dc947a262 inherit pub_methods_classUObject"><td class="memSeparator" colspan="2"> </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:af581ed7be8f00628474e3789e5af42cd"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#af581ed7be8f00628474e3789e5af42cd">Replaceable</a> ()</td></tr> <tr class="memdesc:af581ed7be8f00628474e3789e5af42cd"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#af581ed7be8f00628474e3789e5af42cd">More...</a><br/></td></tr> <tr class="separator:af581ed7be8f00628474e3789e5af42cd"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aaa70d54cdfecf5e6a0a86566c8f75809"><td class="memItemLeft" align="right" valign="top">virtual int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#aaa70d54cdfecf5e6a0a86566c8f75809">getLength</a> () const =0</td></tr> <tr class="memdesc:aaa70d54cdfecf5e6a0a86566c8f75809"><td class="mdescLeft"> </td><td class="mdescRight">Virtual version of <a class="el" href="classReplaceable.html#a81c2af838cfaf3c2a0d46b7fa727e8d0" title="Returns the number of 16-bit code units in the text. ">length()</a>. <a href="#aaa70d54cdfecf5e6a0a86566c8f75809">More...</a><br/></td></tr> <tr class="separator:aaa70d54cdfecf5e6a0a86566c8f75809"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5cb36727170bbcc883a0c5846a6c4484"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#a5cb36727170bbcc883a0c5846a6c4484">getCharAt</a> (int32_t offset) const =0</td></tr> <tr class="memdesc:a5cb36727170bbcc883a0c5846a6c4484"><td class="mdescLeft"> </td><td class="mdescRight">Virtual version of <a class="el" href="classReplaceable.html#a78909dd61599c6f2d8af7a9d3bf5dd0f" title="Returns the 16-bit code unit at the given offset into the text. ">charAt()</a>. <a href="#a5cb36727170bbcc883a0c5846a6c4484">More...</a><br/></td></tr> <tr class="separator:a5cb36727170bbcc883a0c5846a6c4484"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6305704f7ac09b06c85fd7698f7ac384"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a09fff5c3b5a5b015324dc3ec3cf92809">UChar32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReplaceable.html#a6305704f7ac09b06c85fd7698f7ac384">getChar32At</a> (int32_t offset) const =0</td></tr> <tr class="memdesc:a6305704f7ac09b06c85fd7698f7ac384"><td class="mdescLeft"> </td><td class="mdescRight">Virtual version of <a class="el" href="classReplaceable.html#ac7e972cbbe070b5fb1d0f824d2badb2c" title="Returns the 32-bit code point at the given 16-bit offset into the text. ">char32At()</a>. <a href="#a6305704f7ac09b06c85fd7698f7ac384">More...</a><br/></td></tr> <tr class="separator:a6305704f7ac09b06c85fd7698f7ac384"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> Additional Inherited Members</h2></td></tr> <tr class="inherit_header pub_static_methods_classUMemory"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classUMemory')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="classUMemory.html">UMemory</a></td></tr> <tr class="memitem:a309b19b5777e2840b85b202aef5a54fb inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a309b19b5777e2840b85b202aef5a54fb">operator new</a> (size_t size)</td></tr> <tr class="memdesc:a309b19b5777e2840b85b202aef5a54fb inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#a309b19b5777e2840b85b202aef5a54fb">More...</a><br/></td></tr> <tr class="separator:a309b19b5777e2840b85b202aef5a54fb inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4d0df3571728e7b8a823dbbea6e9b5c5 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a4d0df3571728e7b8a823dbbea6e9b5c5">operator new[]</a> (size_t size)</td></tr> <tr class="memdesc:a4d0df3571728e7b8a823dbbea6e9b5c5 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#a4d0df3571728e7b8a823dbbea6e9b5c5">More...</a><br/></td></tr> <tr class="separator:a4d0df3571728e7b8a823dbbea6e9b5c5 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:adcda65a58813749f8f45c5e6c1ed37e1 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#adcda65a58813749f8f45c5e6c1ed37e1">operator delete</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *p)</td></tr> <tr class="memdesc:adcda65a58813749f8f45c5e6c1ed37e1 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#adcda65a58813749f8f45c5e6c1ed37e1">More...</a><br/></td></tr> <tr class="separator:adcda65a58813749f8f45c5e6c1ed37e1 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7602a7a8c6fdff21d9fbecea4d899333 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a7602a7a8c6fdff21d9fbecea4d899333">operator delete[]</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *p)</td></tr> <tr class="memdesc:a7602a7a8c6fdff21d9fbecea4d899333 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#a7602a7a8c6fdff21d9fbecea4d899333">More...</a><br/></td></tr> <tr class="separator:a7602a7a8c6fdff21d9fbecea4d899333 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a43b5221fe429f77230b2040f8724c154 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a43b5221fe429f77230b2040f8724c154">operator new</a> (size_t, <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *ptr)</td></tr> <tr class="memdesc:a43b5221fe429f77230b2040f8724c154 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management for STL. <a href="#a43b5221fe429f77230b2040f8724c154">More...</a><br/></td></tr> <tr class="separator:a43b5221fe429f77230b2040f8724c154 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9b746b0cdb49c8f8907773002ea5c4ea inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a9b746b0cdb49c8f8907773002ea5c4ea">operator delete</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *, <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *)</td></tr> <tr class="memdesc:a9b746b0cdb49c8f8907773002ea5c4ea inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management for STL. <a href="#a9b746b0cdb49c8f8907773002ea5c4ea">More...</a><br/></td></tr> <tr class="separator:a9b746b0cdb49c8f8907773002ea5c4ea inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p><code><a class="el" href="classReplaceable.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="classReplaceable.html#ac7e972cbbe070b5fb1d0f824d2badb2c" 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="classReplaceable.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 <b>bold</b> font" has range (4, 8) replaced with "strong", then it becomes "the <b>strong</b> font".</p> <p><code><a class="el" href="classReplaceable.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="classReplaceable.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="classReplaceable.html#a81c2af838cfaf3c2a0d46b7fa727e8d0" title="Returns the number of 16-bit code units in the text. ">length()</a></code>, <code><a class="el" href="classReplaceable.html#a78909dd61599c6f2d8af7a9d3bf5dd0f" title="Returns the 16-bit code unit at the given offset into the text. ">charAt()</a></code>, <code><a class="el" href="classReplaceable.html#ac7e972cbbe070b5fb1d0f824d2badb2c" 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="classReplaceable.html#abdf76adaff91c3310a70ae4297734bf4" 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#_stable000253">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <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>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="a1235bdf1712cb754c9d591ed399af367"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual 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#_stable000254">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="af581ed7be8f00628474e3789e5af42cd"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">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">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#_stable000263">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="ac7e972cbbe070b5fb1d0f824d2badb2c"></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> Replaceable::char32At </td> <td>(</td> <td class="paramtype">int32_t </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="classReplaceable.html#a81c2af838cfaf3c2a0d46b7fa727e8d0" 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#_stable000257">Stable:</a></b></dt><dd>ICU 1.8 </dd></dl> <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> <p>References <a class="el" href="classReplaceable.html#a6305704f7ac09b06c85fd7698f7ac384">getChar32At()</a>.</p> </div> </div> <a class="anchor" id="a78909dd61599c6f2d8af7a9d3bf5dd0f"></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> Replaceable::charAt </td> <td>(</td> <td class="paramtype">int32_t </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="classReplaceable.html#a81c2af838cfaf3c2a0d46b7fa727e8d0" 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#_stable000256">Stable:</a></b></dt><dd>ICU 1.8 </dd></dl> <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> <p>References <a class="el" href="classReplaceable.html#a5cb36727170bbcc883a0c5846a6c4484">getCharAt()</a>.</p> </div> </div> <a class="anchor" id="a6e976bb4e1517d753fed1ea82539657b"></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="classReplaceable.html">Replaceable</a>* 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="classReplaceable.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="classReplaceable.html#a6e976bb4e1517d753fed1ea82539657b" 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="classReplaceable.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="classUObject.html#a9b1acc95efd89cb86ec31f2dc947a262" title="ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. ">getDynamicClassID</a> </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000262">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl> <p>Reimplemented in <a class="el" href="classUnicodeString.html#a6cf9e8332f251ddfb5758bcada18ea9e">UnicodeString</a>.</p> </div> </div> <a class="anchor" id="aa99cf49af5401c5bc89cd6894c67e2e8"></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="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> Replaceable::copy </td> <td>(</td> <td class="paramtype">int32_t </td> <td class="paramname"><em>start</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t </td> <td class="paramname"><em>limit</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t </td> <td class="paramname"><em>dest</em> </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 <= start <= limit</code>. </td></tr> <tr><td class="paramname">limit</td><td>the ending index, exclusive; <code>start <= limit <= <a class="el" href="classReplaceable.html#a81c2af838cfaf3c2a0d46b7fa727e8d0" 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 <= start || dest >= limit</code>. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000260">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Implemented in <a class="el" href="classUnicodeString.html#a7a3e488399929c744e89a1e041988ec5">UnicodeString</a>.</p> </div> </div> <a class="anchor" id="abdf76adaff91c3310a70ae4297734bf4"></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="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> Replaceable::extractBetween </td> <td>(</td> <td class="paramtype">int32_t </td> <td class="paramname"><em>start</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t </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> & </td> <td class="paramname"><em>target</em> </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="classUnicodeString.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="classUnicodeString.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#_stable000258">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl> <p>Implemented in <a class="el" href="classUnicodeString.html#ad25e9b7db7e37fa102f152729b5f2aa5">UnicodeString</a>.</p> </div> </div> <a class="anchor" id="a6305704f7ac09b06c85fd7698f7ac384"></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> Replaceable::getChar32At </td> <td>(</td> <td class="paramtype">int32_t </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="classReplaceable.html#ac7e972cbbe070b5fb1d0f824d2badb2c" 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#_stable000266">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> <p>Implemented in <a class="el" href="classUnicodeString.html#a5b71c5fb6542921ad247f95c87dc00cf">UnicodeString</a>.</p> <p>Referenced by <a class="el" href="rep_8h_source.html#l00251">char32At()</a>.</p> </div> </div> <a class="anchor" id="a5cb36727170bbcc883a0c5846a6c4484"></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> Replaceable::getCharAt </td> <td>(</td> <td class="paramtype">int32_t </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="classReplaceable.html#a78909dd61599c6f2d8af7a9d3bf5dd0f" 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#_stable000265">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> <p>Implemented in <a class="el" href="classUnicodeString.html#a78317735bb5f7261750e90eeb39f1f40">UnicodeString</a>.</p> <p>Referenced by <a class="el" href="rep_8h_source.html#l00246">charAt()</a>.</p> </div> </div> <a class="anchor" id="aaa70d54cdfecf5e6a0a86566c8f75809"></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 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="classReplaceable.html#a81c2af838cfaf3c2a0d46b7fa727e8d0" 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#_stable000264">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> <p>Implemented in <a class="el" href="classUnicodeString.html#a362a1368137278f56f464aa0199a8117">UnicodeString</a>.</p> <p>Referenced by <a class="el" href="rep_8h_source.html#l00241">length()</a>.</p> </div> </div> <a class="anchor" id="ae403fe2b8d99c4dd1081417d77ca1e99"></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="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> Replaceable::handleReplaceBetween </td> <td>(</td> <td class="paramtype">int32_t </td> <td class="paramname"><em>start</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t </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> & </td> <td class="paramname"><em>text</em> </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 <= start <= limit</code>. </td></tr> <tr><td class="paramname">limit</td><td>the ending index, exclusive; <code>start <= limit <= <a class="el" href="classReplaceable.html#a81c2af838cfaf3c2a0d46b7fa727e8d0" 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#_stable000259">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Implemented in <a class="el" href="classUnicodeString.html#a1050a1af8098db0ef879f2415ba41e82">UnicodeString</a>.</p> </div> </div> <a class="anchor" id="ad4ae052a7be93bb0a69a6a55ff45ca43"></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> 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="classReplaceable.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="classReplaceable.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="classReplaceable.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#_stable000261">Stable:</a></b></dt><dd>ICU 2.2 </dd></dl> <p>Reimplemented in <a class="el" href="classUnicodeString.html#ab06c04a1ff38184310bef13b859eb7c1">UnicodeString</a>.</p> </div> </div> <a class="anchor" id="a81c2af838cfaf3c2a0d46b7fa727e8d0"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">int32_t Replaceable::length </td> <td>(</td> <td class="paramtype"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </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#_stable000255">Stable:</a></b></dt><dd>ICU 1.8 </dd></dl> <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> <p>References <a class="el" href="classReplaceable.html#aaa70d54cdfecf5e6a0a86566c8f75809">getLength()</a>.</p> <p>Referenced by <a class="el" href="unistr_8h_source.html#l04094">UnicodeString::append()</a>, <a class="el" href="unistr_8h_source.html#l03524">UnicodeString::caseCompare()</a>, <a class="el" href="unistr_8h_source.html#l03946">UnicodeString::char32At()</a>, <a class="el" href="unistr_8h_source.html#l03401">UnicodeString::compare()</a>, <a class="el" href="unistr_8h_source.html#l03462">UnicodeString::compareCodePointOrder()</a>, <a class="el" href="unistr_8h_source.html#l03769">UnicodeString::endsWith()</a>, <a class="el" href="unistr_8h_source.html#l03867">UnicodeString::findAndReplace()</a>, <a class="el" href="unistr_8h_source.html#l03971">UnicodeString::getChar32Limit()</a>, <a class="el" href="unistr_8h_source.html#l03960">UnicodeString::getChar32Start()</a>, <a class="el" href="unistr_8h_source.html#l04020">UnicodeString::getTerminatedBuffer()</a>, <a class="el" href="unistr_8h_source.html#l03598">UnicodeString::indexOf()</a>, <a class="el" href="unistr_8h_source.html#l03671">UnicodeString::lastIndexOf()</a>, <a class="el" href="unistr_8h_source.html#l04128">UnicodeString::operator+=()</a>, <a class="el" href="unistr_8h_source.html#l03389">UnicodeString::operator<()</a>, <a class="el" href="unistr_8h_source.html#l03397">UnicodeString::operator<=()</a>, <a class="el" href="unistr_8h_source.html#l04039">UnicodeString::operator=()</a>, <a class="el" href="unistr_8h_source.html#l03367">UnicodeString::operator==()</a>, <a class="el" href="unistr_8h_source.html#l03385">UnicodeString::operator>()</a>, <a class="el" href="unistr_8h_source.html#l03393">UnicodeString::operator>=()</a>, <a class="el" href="unistr_8h_source.html#l04220">UnicodeString::reverse()</a>, <a class="el" href="unistr_8h_source.html#l04047">UnicodeString::setTo()</a>, and <a class="el" href="unistr_8h_source.html#l04205">UnicodeString::truncate()</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  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.5 </small></address> </body> </html>