Sophie

Sophie

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

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::StringSearch 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_1StringSearch.html">StringSearch</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">icu::StringSearch Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> is a <code><a class="el" href="classicu_1_1SearchIterator.html" title="SearchIterator is an abstract base class that provides methods to search for a pattern within a text ...">SearchIterator</a></code> that provides language-sensitive text searching based on the comparison rules defined in a <a class="el" href="classicu_1_1RuleBasedCollator.html">RuleBasedCollator</a> object.  
 <a href="classicu_1_1StringSearch.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="stsearch_8h_source.html">stsearch.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for icu::StringSearch:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classicu_1_1StringSearch.png" usemap="#icu::StringSearch_map" alt=""/>
  <map id="icu::StringSearch_map" name="icu::StringSearch_map">
<area href="classicu_1_1SearchIterator.html" title="SearchIterator is an abstract base class that provides methods to search for a pattern within a text ..." alt="icu::SearchIterator" shape="rect" coords="0,112,116,136"/>
<area href="classicu_1_1UObject.html" title="UObject is the common ICU &quot;boilerplate&quot; class. " alt="icu::UObject" shape="rect" coords="0,56,116,80"/>
<area href="classicu_1_1UMemory.html" title="UMemory is the common ICU base class. " alt="icu::UMemory" shape="rect" coords="0,0,116,24"/>
</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:a4fe92827a0a43b6efdead03ca65ad720"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#a4fe92827a0a43b6efdead03ca65ad720">StringSearch</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;pattern, const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;text, const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;locale, <a class="el" href="classicu_1_1BreakIterator.html">BreakIterator</a> *breakiter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a4fe92827a0a43b6efdead03ca65ad720"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creating a <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> instance using the argument locale language rule set.  <a href="#a4fe92827a0a43b6efdead03ca65ad720">More...</a><br /></td></tr>
<tr class="separator:a4fe92827a0a43b6efdead03ca65ad720"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a906ff8d5fefde96a158b1dfc5f20e744"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#a906ff8d5fefde96a158b1dfc5f20e744">StringSearch</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;pattern, const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;text, <a class="el" href="classicu_1_1RuleBasedCollator.html">RuleBasedCollator</a> *coll, <a class="el" href="classicu_1_1BreakIterator.html">BreakIterator</a> *breakiter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a906ff8d5fefde96a158b1dfc5f20e744"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creating a <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> instance using the argument collator language rule set.  <a href="#a906ff8d5fefde96a158b1dfc5f20e744">More...</a><br /></td></tr>
<tr class="separator:a906ff8d5fefde96a158b1dfc5f20e744"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e6464834924991b8b28dd3b616899cb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#a5e6464834924991b8b28dd3b616899cb">StringSearch</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="classicu_1_1CharacterIterator.html">CharacterIterator</a> &amp;text, const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;locale, <a class="el" href="classicu_1_1BreakIterator.html">BreakIterator</a> *breakiter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a5e6464834924991b8b28dd3b616899cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creating a <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> instance using the argument locale language rule set.  <a href="#a5e6464834924991b8b28dd3b616899cb">More...</a><br /></td></tr>
<tr class="separator:a5e6464834924991b8b28dd3b616899cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac58431056321b9af834d07015530bade"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#ac58431056321b9af834d07015530bade">StringSearch</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="classicu_1_1CharacterIterator.html">CharacterIterator</a> &amp;text, <a class="el" href="classicu_1_1RuleBasedCollator.html">RuleBasedCollator</a> *coll, <a class="el" href="classicu_1_1BreakIterator.html">BreakIterator</a> *breakiter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:ac58431056321b9af834d07015530bade"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creating a <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> instance using the argument collator language rule set.  <a href="#ac58431056321b9af834d07015530bade">More...</a><br /></td></tr>
<tr class="separator:ac58431056321b9af834d07015530bade"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a472264e23bfeef648112e8e93de5d6fb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#a472264e23bfeef648112e8e93de5d6fb">StringSearch</a> (const <a class="el" href="classicu_1_1StringSearch.html">StringSearch</a> &amp;that)</td></tr>
<tr class="memdesc:a472264e23bfeef648112e8e93de5d6fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor that creates a <a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a> instance with the same behavior, and iterating over the same text.  <a href="#a472264e23bfeef648112e8e93de5d6fb">More...</a><br /></td></tr>
<tr class="separator:a472264e23bfeef648112e8e93de5d6fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0babc6f8457469f81d812de0fb79d13"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#af0babc6f8457469f81d812de0fb79d13">~StringSearch</a> (void)</td></tr>
<tr class="memdesc:af0babc6f8457469f81d812de0fb79d13"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#af0babc6f8457469f81d812de0fb79d13">More...</a><br /></td></tr>
<tr class="separator:af0babc6f8457469f81d812de0fb79d13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68ea08d58a61a39a9fb4aa3be15afc2d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1StringSearch.html">StringSearch</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#a68ea08d58a61a39a9fb4aa3be15afc2d">clone</a> () const </td></tr>
<tr class="memdesc:a68ea08d58a61a39a9fb4aa3be15afc2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clone this object.  <a href="#a68ea08d58a61a39a9fb4aa3be15afc2d">More...</a><br /></td></tr>
<tr class="separator:a68ea08d58a61a39a9fb4aa3be15afc2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63bb44cbf4d60d74df6235eef91f8637"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1StringSearch.html">StringSearch</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#a63bb44cbf4d60d74df6235eef91f8637">operator=</a> (const <a class="el" href="classicu_1_1StringSearch.html">StringSearch</a> &amp;that)</td></tr>
<tr class="memdesc:a63bb44cbf4d60d74df6235eef91f8637"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator.  <a href="#a63bb44cbf4d60d74df6235eef91f8637">More...</a><br /></td></tr>
<tr class="separator:a63bb44cbf4d60d74df6235eef91f8637"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dc6e34165f34ce59ee08b7582e7b1b3"><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_1StringSearch.html#a6dc6e34165f34ce59ee08b7582e7b1b3">operator==</a> (const <a class="el" href="classicu_1_1SearchIterator.html">SearchIterator</a> &amp;that) const </td></tr>
<tr class="memdesc:a6dc6e34165f34ce59ee08b7582e7b1b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equality operator.  <a href="#a6dc6e34165f34ce59ee08b7582e7b1b3">More...</a><br /></td></tr>
<tr class="separator:a6dc6e34165f34ce59ee08b7582e7b1b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f42063b84afbdcf4e4ba9fcec33985d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#a8f42063b84afbdcf4e4ba9fcec33985d">setOffset</a> (int32_t position, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a8f42063b84afbdcf4e4ba9fcec33985d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the index to point to the given position, and clears any state that's affected.  <a href="#a8f42063b84afbdcf4e4ba9fcec33985d">More...</a><br /></td></tr>
<tr class="separator:a8f42063b84afbdcf4e4ba9fcec33985d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa949bee2a36470aafaab45acbcfbd109"><td class="memItemLeft" align="right" valign="top">virtual int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#aa949bee2a36470aafaab45acbcfbd109">getOffset</a> (void) const </td></tr>
<tr class="memdesc:aa949bee2a36470aafaab45acbcfbd109"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the current index in the text being searched.  <a href="#aa949bee2a36470aafaab45acbcfbd109">More...</a><br /></td></tr>
<tr class="separator:aa949bee2a36470aafaab45acbcfbd109"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac53e95dd30fc6c234ed866b074450ea3"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#ac53e95dd30fc6c234ed866b074450ea3">setText</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;text, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:ac53e95dd30fc6c234ed866b074450ea3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the target text to be searched.  <a href="#ac53e95dd30fc6c234ed866b074450ea3">More...</a><br /></td></tr>
<tr class="separator:ac53e95dd30fc6c234ed866b074450ea3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc002ea77e043044596039c5ce7f9cc5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#afc002ea77e043044596039c5ce7f9cc5">setText</a> (<a class="el" href="classicu_1_1CharacterIterator.html">CharacterIterator</a> &amp;text, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:afc002ea77e043044596039c5ce7f9cc5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the target text to be searched.  <a href="#afc002ea77e043044596039c5ce7f9cc5">More...</a><br /></td></tr>
<tr class="separator:afc002ea77e043044596039c5ce7f9cc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b85f331f3d71c140e2cff9502e6f0fd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1RuleBasedCollator.html">RuleBasedCollator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#a2b85f331f3d71c140e2cff9502e6f0fd">getCollator</a> () const </td></tr>
<tr class="memdesc:a2b85f331f3d71c140e2cff9502e6f0fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the collator used for the language rules.  <a href="#a2b85f331f3d71c140e2cff9502e6f0fd">More...</a><br /></td></tr>
<tr class="separator:a2b85f331f3d71c140e2cff9502e6f0fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa64c5ad544ae6bdfa87985060d37e823"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#aa64c5ad544ae6bdfa87985060d37e823">setCollator</a> (<a class="el" href="classicu_1_1RuleBasedCollator.html">RuleBasedCollator</a> *coll, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:aa64c5ad544ae6bdfa87985060d37e823"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the collator used for the language rules.  <a href="#aa64c5ad544ae6bdfa87985060d37e823">More...</a><br /></td></tr>
<tr class="separator:aa64c5ad544ae6bdfa87985060d37e823"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8caa9d0a452bfeebf12d8438bfb0ded"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#ab8caa9d0a452bfeebf12d8438bfb0ded">setPattern</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:ab8caa9d0a452bfeebf12d8438bfb0ded"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the pattern used for matching.  <a href="#ab8caa9d0a452bfeebf12d8438bfb0ded">More...</a><br /></td></tr>
<tr class="separator:ab8caa9d0a452bfeebf12d8438bfb0ded"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c34065a6903e1923813633e794b2be4"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#a2c34065a6903e1923813633e794b2be4">getPattern</a> () const </td></tr>
<tr class="memdesc:a2c34065a6903e1923813633e794b2be4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the search pattern.  <a href="#a2c34065a6903e1923813633e794b2be4">More...</a><br /></td></tr>
<tr class="separator:a2c34065a6903e1923813633e794b2be4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1e250e16e7fe837fd363b22c8dc51e1"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#ae1e250e16e7fe837fd363b22c8dc51e1">reset</a> ()</td></tr>
<tr class="memdesc:ae1e250e16e7fe837fd363b22c8dc51e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the iteration.  <a href="#ae1e250e16e7fe837fd363b22c8dc51e1">More...</a><br /></td></tr>
<tr class="separator:ae1e250e16e7fe837fd363b22c8dc51e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01f4fef2ae626a1cd79bd4a38772dea2"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classicu_1_1SearchIterator.html">SearchIterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#a01f4fef2ae626a1cd79bd4a38772dea2">safeClone</a> (void) const </td></tr>
<tr class="memdesc:a01f4fef2ae626a1cd79bd4a38772dea2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a copy of <a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a> with the same behavior, and iterating over the same text, as this one.  <a href="#a01f4fef2ae626a1cd79bd4a38772dea2">More...</a><br /></td></tr>
<tr class="separator:a01f4fef2ae626a1cd79bd4a38772dea2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cc3df0d361bd9e0717d2d4709dc4092"><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_1StringSearch.html#a6cc3df0d361bd9e0717d2d4709dc4092">getDynamicClassID</a> () const </td></tr>
<tr class="memdesc:a6cc3df0d361bd9e0717d2d4709dc4092"><td class="mdescLeft">&#160;</td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for the actual class.  <a href="#a6cc3df0d361bd9e0717d2d4709dc4092">More...</a><br /></td></tr>
<tr class="separator:a6cc3df0d361bd9e0717d2d4709dc4092"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classicu_1_1SearchIterator"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classicu_1_1SearchIterator')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classicu_1_1SearchIterator.html">icu::SearchIterator</a></td></tr>
<tr class="memitem:a246a13bf836186398c91240ea346d503 inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a246a13bf836186398c91240ea346d503">SearchIterator</a> (const <a class="el" href="classicu_1_1SearchIterator.html">SearchIterator</a> &amp;other)</td></tr>
<tr class="memdesc:a246a13bf836186398c91240ea346d503 inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor that creates a <a class="el" href="classicu_1_1SearchIterator.html" title="SearchIterator is an abstract base class that provides methods to search for a pattern within a text ...">SearchIterator</a> instance with the same behavior, and iterating over the same text.  <a href="#a246a13bf836186398c91240ea346d503">More...</a><br /></td></tr>
<tr class="separator:a246a13bf836186398c91240ea346d503 inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb9776a1ae4060a1c8e4577407cdf75d inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#afb9776a1ae4060a1c8e4577407cdf75d">~SearchIterator</a> ()</td></tr>
<tr class="memdesc:afb9776a1ae4060a1c8e4577407cdf75d inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#afb9776a1ae4060a1c8e4577407cdf75d">More...</a><br /></td></tr>
<tr class="separator:afb9776a1ae4060a1c8e4577407cdf75d inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43e05ea9390f56afdead82e592b7e7dc inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a43e05ea9390f56afdead82e592b7e7dc">setAttribute</a> (<a class="el" href="usearch_8h.html#aa382f146f1968a9d1dc182100b23ac03">USearchAttribute</a> attribute, <a class="el" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1">USearchAttributeValue</a> value, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a43e05ea9390f56afdead82e592b7e7dc inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the text searching attributes located in the enum USearchAttribute with values from the enum USearchAttributeValue.  <a href="#a43e05ea9390f56afdead82e592b7e7dc">More...</a><br /></td></tr>
<tr class="separator:a43e05ea9390f56afdead82e592b7e7dc inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2968d48fab658ab24c0dd02d2048f076 inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top"><a class="el" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1">USearchAttributeValue</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a2968d48fab658ab24c0dd02d2048f076">getAttribute</a> (<a class="el" href="usearch_8h.html#aa382f146f1968a9d1dc182100b23ac03">USearchAttribute</a> attribute) const </td></tr>
<tr class="memdesc:a2968d48fab658ab24c0dd02d2048f076 inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the text searching attributes.  <a href="#a2968d48fab658ab24c0dd02d2048f076">More...</a><br /></td></tr>
<tr class="separator:a2968d48fab658ab24c0dd02d2048f076 inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b4a0e5ca6378dad009e1aeecb29f5d6 inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a0b4a0e5ca6378dad009e1aeecb29f5d6">getMatchedStart</a> (void) const </td></tr>
<tr class="memdesc:a0b4a0e5ca6378dad009e1aeecb29f5d6 inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the index to the match in the text string that was searched.  <a href="#a0b4a0e5ca6378dad009e1aeecb29f5d6">More...</a><br /></td></tr>
<tr class="separator:a0b4a0e5ca6378dad009e1aeecb29f5d6 inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61e97a04115bc479c61cea1120c359e1 inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a61e97a04115bc479c61cea1120c359e1">getMatchedLength</a> (void) const </td></tr>
<tr class="memdesc:a61e97a04115bc479c61cea1120c359e1 inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the length of text in the string which matches the search pattern.  <a href="#a61e97a04115bc479c61cea1120c359e1">More...</a><br /></td></tr>
<tr class="separator:a61e97a04115bc479c61cea1120c359e1 inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86cb4e5d12a8d2d9c3f8a0651b769084 inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a86cb4e5d12a8d2d9c3f8a0651b769084">getMatchedText</a> (<a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;result) const </td></tr>
<tr class="memdesc:a86cb4e5d12a8d2d9c3f8a0651b769084 inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the text that was matched by the most recent call to <code>first</code>, <code>next</code>, <code>previous</code>, or <code>last</code>.  <a href="#a86cb4e5d12a8d2d9c3f8a0651b769084">More...</a><br /></td></tr>
<tr class="separator:a86cb4e5d12a8d2d9c3f8a0651b769084 inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7a52648e8dfb9432969a7a8607902a6 inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#ab7a52648e8dfb9432969a7a8607902a6">setBreakIterator</a> (<a class="el" href="classicu_1_1BreakIterator.html">BreakIterator</a> *breakiter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:ab7a52648e8dfb9432969a7a8607902a6 inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the <a class="el" href="classicu_1_1BreakIterator.html" title="The BreakIterator class implements methods for finding the location of boundaries in text...">BreakIterator</a> that will be used to restrict the points at which matches are detected.  <a href="#ab7a52648e8dfb9432969a7a8607902a6">More...</a><br /></td></tr>
<tr class="separator:ab7a52648e8dfb9432969a7a8607902a6 inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdbc6f2a39fe35c7901e5662a068b4d7 inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classicu_1_1BreakIterator.html">BreakIterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#acdbc6f2a39fe35c7901e5662a068b4d7">getBreakIterator</a> (void) const </td></tr>
<tr class="memdesc:acdbc6f2a39fe35c7901e5662a068b4d7 inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="classicu_1_1BreakIterator.html" title="The BreakIterator class implements methods for finding the location of boundaries in text...">BreakIterator</a> that is used to restrict the points at which matches are detected.  <a href="#acdbc6f2a39fe35c7901e5662a068b4d7">More...</a><br /></td></tr>
<tr class="separator:acdbc6f2a39fe35c7901e5662a068b4d7 inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae57f291dfbd85c58a739512daddb98bf inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#ae57f291dfbd85c58a739512daddb98bf">getText</a> (void) const </td></tr>
<tr class="memdesc:ae57f291dfbd85c58a739512daddb98bf inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the string text to be searched.  <a href="#ae57f291dfbd85c58a739512daddb98bf">More...</a><br /></td></tr>
<tr class="separator:ae57f291dfbd85c58a739512daddb98bf inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab527bf595da6ed9024e6ea5d0e5f8ca3 inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#ab527bf595da6ed9024e6ea5d0e5f8ca3">operator!=</a> (const <a class="el" href="classicu_1_1SearchIterator.html">SearchIterator</a> &amp;that) const </td></tr>
<tr class="memdesc:ab527bf595da6ed9024e6ea5d0e5f8ca3 inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Not-equal operator.  <a href="#ab527bf595da6ed9024e6ea5d0e5f8ca3">More...</a><br /></td></tr>
<tr class="separator:ab527bf595da6ed9024e6ea5d0e5f8ca3 inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3adc58b5531eb0007a5c439fdcba2b5c inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a3adc58b5531eb0007a5c439fdcba2b5c">first</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a3adc58b5531eb0007a5c439fdcba2b5c inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the first index at which the string text matches the search pattern.  <a href="#a3adc58b5531eb0007a5c439fdcba2b5c">More...</a><br /></td></tr>
<tr class="separator:a3adc58b5531eb0007a5c439fdcba2b5c inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa773b3c2b2884c84bb6e3e980f3e327a inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#aa773b3c2b2884c84bb6e3e980f3e327a">following</a> (int32_t position, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:aa773b3c2b2884c84bb6e3e980f3e327a inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the first index equal or greater than <code>position</code> at which the string text matches the search pattern.  <a href="#aa773b3c2b2884c84bb6e3e980f3e327a">More...</a><br /></td></tr>
<tr class="separator:aa773b3c2b2884c84bb6e3e980f3e327a inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66e0ec8ba1f20653b2f6d11d116da232 inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a66e0ec8ba1f20653b2f6d11d116da232">last</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a66e0ec8ba1f20653b2f6d11d116da232 inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the last index in the target text at which it matches the search pattern.  <a href="#a66e0ec8ba1f20653b2f6d11d116da232">More...</a><br /></td></tr>
<tr class="separator:a66e0ec8ba1f20653b2f6d11d116da232 inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b381e8fffd24233b74bd234d068ce41 inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a5b381e8fffd24233b74bd234d068ce41">preceding</a> (int32_t position, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a5b381e8fffd24233b74bd234d068ce41 inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the first index less than <code>position</code> at which the string text matches the search pattern.  <a href="#a5b381e8fffd24233b74bd234d068ce41">More...</a><br /></td></tr>
<tr class="separator:a5b381e8fffd24233b74bd234d068ce41 inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2aa0e7427fc4ff817d99d5e1d6f1fbd9 inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a2aa0e7427fc4ff817d99d5e1d6f1fbd9">next</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a2aa0e7427fc4ff817d99d5e1d6f1fbd9 inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the index of the next point at which the text matches the search pattern, starting from the current position The iterator is adjusted so that its current index (as returned by <code>getOffset</code>) is the match position if one was found.  <a href="#a2aa0e7427fc4ff817d99d5e1d6f1fbd9">More...</a><br /></td></tr>
<tr class="separator:a2aa0e7427fc4ff817d99d5e1d6f1fbd9 inherit pub_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a95215dfaa7228f5c364a3f5ffe25fc inherit pub_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a5a95215dfaa7228f5c364a3f5ffe25fc">previous</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a5a95215dfaa7228f5c364a3f5ffe25fc inherit pub_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the index of the previous point at which the string text matches the search pattern, starting at the current position.  <a href="#a5a95215dfaa7228f5c364a3f5ffe25fc">More...</a><br /></td></tr>
<tr class="separator:a5a95215dfaa7228f5c364a3f5ffe25fc inherit pub_methods_classicu_1_1SearchIterator"><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>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a9bfad1285f91d953936b57cf9028c860"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="uobject_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#a9bfad1285f91d953936b57cf9028c860">getStaticClassID</a> ()</td></tr>
<tr class="memdesc:a9bfad1285f91d953936b57cf9028c860"><td class="mdescLeft">&#160;</td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for this class.  <a href="#a9bfad1285f91d953936b57cf9028c860">More...</a><br /></td></tr>
<tr class="separator:a9bfad1285f91d953936b57cf9028c860"><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:a8bfd6bf33a0f5c5006539a8633d573d9"><td class="memItemLeft" align="right" valign="top">virtual int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#a8bfd6bf33a0f5c5006539a8633d573d9">handleNext</a> (int32_t position, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a8bfd6bf33a0f5c5006539a8633d573d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Search forward for matching text, starting at a given location.  <a href="#a8bfd6bf33a0f5c5006539a8633d573d9">More...</a><br /></td></tr>
<tr class="separator:a8bfd6bf33a0f5c5006539a8633d573d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f74971bbf6699cdfdfce829b5b89c8a"><td class="memItemLeft" align="right" valign="top">virtual int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1StringSearch.html#a8f74971bbf6699cdfdfce829b5b89c8a">handlePrev</a> (int32_t position, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a8f74971bbf6699cdfdfce829b5b89c8a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Search backward for matching text, starting at a given location.  <a href="#a8f74971bbf6699cdfdfce829b5b89c8a">More...</a><br /></td></tr>
<tr class="separator:a8f74971bbf6699cdfdfce829b5b89c8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classicu_1_1SearchIterator"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classicu_1_1SearchIterator')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classicu_1_1SearchIterator.html">icu::SearchIterator</a></td></tr>
<tr class="memitem:a7aca0957f8a46109c338b85920f326fc inherit pro_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a7aca0957f8a46109c338b85920f326fc">SearchIterator</a> ()</td></tr>
<tr class="memdesc:a7aca0957f8a46109c338b85920f326fc inherit pro_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#a7aca0957f8a46109c338b85920f326fc">More...</a><br /></td></tr>
<tr class="separator:a7aca0957f8a46109c338b85920f326fc inherit pro_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed62db3324ec26b78e23b9ec086cad5a inherit pro_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#aed62db3324ec26b78e23b9ec086cad5a">SearchIterator</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;text, <a class="el" href="classicu_1_1BreakIterator.html">BreakIterator</a> *breakiter=<a class="el" href="utypes_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>)</td></tr>
<tr class="memdesc:aed62db3324ec26b78e23b9ec086cad5a inherit pro_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor for use by subclasses.  <a href="#aed62db3324ec26b78e23b9ec086cad5a">More...</a><br /></td></tr>
<tr class="separator:aed62db3324ec26b78e23b9ec086cad5a inherit pro_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56db0275b6c7b664be3f2afc07203fe1 inherit pro_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a56db0275b6c7b664be3f2afc07203fe1">SearchIterator</a> (<a class="el" href="classicu_1_1CharacterIterator.html">CharacterIterator</a> &amp;text, <a class="el" href="classicu_1_1BreakIterator.html">BreakIterator</a> *breakiter=<a class="el" href="utypes_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>)</td></tr>
<tr class="memdesc:a56db0275b6c7b664be3f2afc07203fe1 inherit pro_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor for use by subclasses.  <a href="#a56db0275b6c7b664be3f2afc07203fe1">More...</a><br /></td></tr>
<tr class="separator:a56db0275b6c7b664be3f2afc07203fe1 inherit pro_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24be5ff0dd0c049e19cdb54694969318 inherit pro_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1SearchIterator.html">SearchIterator</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a24be5ff0dd0c049e19cdb54694969318">operator=</a> (const <a class="el" href="classicu_1_1SearchIterator.html">SearchIterator</a> &amp;that)</td></tr>
<tr class="memdesc:a24be5ff0dd0c049e19cdb54694969318 inherit pro_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator.  <a href="#a24be5ff0dd0c049e19cdb54694969318">More...</a><br /></td></tr>
<tr class="separator:a24be5ff0dd0c049e19cdb54694969318 inherit pro_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e4b9a280c1a088a27a875d49436cc95 inherit pro_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a2e4b9a280c1a088a27a875d49436cc95">setMatchLength</a> (int32_t length)</td></tr>
<tr class="memdesc:a2e4b9a280c1a088a27a875d49436cc95 inherit pro_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the length of the currently matched string in the text string to be searched.  <a href="#a2e4b9a280c1a088a27a875d49436cc95">More...</a><br /></td></tr>
<tr class="separator:a2e4b9a280c1a088a27a875d49436cc95 inherit pro_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8de6d75d1ac07d3384dc5eaacd2ab6e7 inherit pro_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a8de6d75d1ac07d3384dc5eaacd2ab6e7">setMatchStart</a> (int32_t position)</td></tr>
<tr class="memdesc:a8de6d75d1ac07d3384dc5eaacd2ab6e7 inherit pro_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the offset of the currently matched string in the text string to be searched.  <a href="#a8de6d75d1ac07d3384dc5eaacd2ab6e7">More...</a><br /></td></tr>
<tr class="separator:a8de6d75d1ac07d3384dc5eaacd2ab6e7 inherit pro_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99f080447a1e36d1826642e06fbb7671 inherit pro_methods_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a99f080447a1e36d1826642e06fbb7671">setMatchNotFound</a> ()</td></tr>
<tr class="memdesc:a99f080447a1e36d1826642e06fbb7671 inherit pro_methods_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">sets match not found  <a href="#a99f080447a1e36d1826642e06fbb7671">More...</a><br /></td></tr>
<tr class="separator:a99f080447a1e36d1826642e06fbb7671 inherit pro_methods_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</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 pro_attribs_classicu_1_1SearchIterator"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classicu_1_1SearchIterator')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classicu_1_1SearchIterator.html">icu::SearchIterator</a></td></tr>
<tr class="memitem:a1179431a358c02cd9390d3ce65cb2567 inherit pro_attribs_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top"><a class="el" href="search_8h.html#ab9a54441959795454ae0406609767131">USearch</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a1179431a358c02cd9390d3ce65cb2567">m_search_</a></td></tr>
<tr class="memdesc:a1179431a358c02cd9390d3ce65cb2567 inherit pro_attribs_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">C search data struct.  <a href="#a1179431a358c02cd9390d3ce65cb2567">More...</a><br /></td></tr>
<tr class="separator:a1179431a358c02cd9390d3ce65cb2567 inherit pro_attribs_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac154bf58b425147ab7cdf70fe1da9837 inherit pro_attribs_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1BreakIterator.html">BreakIterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#ac154bf58b425147ab7cdf70fe1da9837">m_breakiterator_</a></td></tr>
<tr class="memdesc:ac154bf58b425147ab7cdf70fe1da9837 inherit pro_attribs_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Break iterator.  <a href="#ac154bf58b425147ab7cdf70fe1da9837">More...</a><br /></td></tr>
<tr class="separator:ac154bf58b425147ab7cdf70fe1da9837 inherit pro_attribs_classicu_1_1SearchIterator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a7a38a62a4950b1b8648cd327c9bade inherit pro_attribs_classicu_1_1SearchIterator"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1SearchIterator.html#a8a7a38a62a4950b1b8648cd327c9bade">m_text_</a></td></tr>
<tr class="memdesc:a8a7a38a62a4950b1b8648cd327c9bade inherit pro_attribs_classicu_1_1SearchIterator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unicode string version of the search text.  <a href="#a8a7a38a62a4950b1b8648cd327c9bade">More...</a><br /></td></tr>
<tr class="separator:a8a7a38a62a4950b1b8648cd327c9bade inherit pro_attribs_classicu_1_1SearchIterator"><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_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> is a <code><a class="el" href="classicu_1_1SearchIterator.html" title="SearchIterator is an abstract base class that provides methods to search for a pattern within a text ...">SearchIterator</a></code> that provides language-sensitive text searching based on the comparison rules defined in a <a class="el" href="classicu_1_1RuleBasedCollator.html">RuleBasedCollator</a> object. </p>
<p><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a> ensures that language eccentricity can be handled, e.g. for the German collator, characters &szlig; and SS will be matched if case is chosen to be ignored. See the <a href="http://source.icu-project.org/repos/icu/icuhtml/trunk/design/collation/ICU_collation_design.htm">"ICU Collation Design Document"</a> for more information. </p>
<p>There are 2 match options for selection:<br />
 Let S' be the sub-string of a text string S between the offsets start and end [start, end]. <br />
 A pattern string P matches a text string S at the offsets [start, end] if </p><pre> 
option 1. Some canonical equivalent of P matches some canonical equivalent
          of S'
option 2. P matches S' and if P starts or ends with a combining mark,
          there exists no non-ignorable combining mark before or after S?
          in S respectively.
</pre><p> Option 2. will be the default. </p>
<p>This search has APIs similar to that of other text iteration mechanisms such as the break iterators in <code><a class="el" href="classicu_1_1BreakIterator.html" title="The BreakIterator class implements methods for finding the location of boundaries in text...">BreakIterator</a></code>. Using these APIs, it is easy to scan through text looking for all occurrences of a given pattern. This search iterator allows changing of direction by calling a <code>reset</code> followed by a <code>next</code> or <code>previous</code>. Though a direction change can occur without calling <code>reset</code> first, this operation comes with some speed penalty. Match results in the forward direction will match the result matches in the backwards direction in the reverse order </p>
<p><code><a class="el" href="classicu_1_1SearchIterator.html" title="SearchIterator is an abstract base class that provides methods to search for a pattern within a text ...">SearchIterator</a></code> provides APIs to specify the starting position within the text string to be searched, e.g. <code>setOffset</code>, <code>preceding</code> and <code>following</code>. Since the starting position will be set as it is specified, please take note that there are some danger points which the search may render incorrect results: </p><ul>
<li>
The midst of a substring that requires normalization. </li>
<li>
If the following match is to be found, the position should not be the second character which requires to be swapped with the preceding character. Vice versa, if the preceding match is to be found, position to search from should not be the first character which requires to be swapped with the next character. E.g certain Thai and Lao characters require swapping. </li>
<li>
If a following pattern match is to be found, any position within a contracting sequence except the first will fail. Vice versa if a preceding pattern match is to be found, a invalid starting point would be any character within a contracting sequence except the last. </li>
</ul>
<p>A <code><a class="el" href="classicu_1_1BreakIterator.html" title="The BreakIterator class implements methods for finding the location of boundaries in text...">BreakIterator</a></code> can be used if only matches at logical breaks are desired. Using a <code><a class="el" href="classicu_1_1BreakIterator.html" title="The BreakIterator class implements methods for finding the location of boundaries in text...">BreakIterator</a></code> will only give you results that exactly matches the boundaries given by the breakiterator. For instance the pattern "e" will not be found in the string "\u00e9" if a character break iterator is used. </p>
<p>Options are provided to handle overlapping matches. E.g. In English, overlapping matches produces the result 0 and 2 for the pattern "abab" in the text "ababab", where else mutually exclusive matches only produce the result of 0. </p>
<p>Though collator attributes will be taken into consideration while performing matches, there are no APIs here for setting and getting the attributes. These attributes can be set by getting the collator from <code>getCollator</code> and using the APIs in <code><a class="el" href="coll_8h.html" title="C++ API: Collation Service. ">coll.h</a></code>. Lastly to update <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> to the new collator attributes, <code>reset</code> has to be called. </p>
<p>Restriction: <br />
 Currently there are no composite characters that consists of a character with combining class &gt; 0 before a character with combining class == 0. However, if such a character exists in the future, <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> does not guarantee the results for option 1. </p>
<p>Consult the <code><a class="el" href="classicu_1_1SearchIterator.html" title="SearchIterator is an abstract base class that provides methods to search for a pattern within a text ...">SearchIterator</a></code> documentation for information on and examples of how to use instances of this class to implement text searching. </p><pre><code>
<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> target("The quick brown fox jumps over the lazy dog.");
<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> pattern("fox");</code></pre><pre><code>UErrorCode      error = U_ZERO_ERROR;
<a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a> iter(pattern, target, Locale::getUS(), NULL, status);
for (int pos = iter.first(error);
     pos != USEARCH_DONE; 
     pos = iter.next(error))
{
    printf("Found match at %d pos, length is %d\n", pos, 
                                            iter.getMatchLength());
}
</code></pre> <p>Note, <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> is not to be subclassed. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classicu_1_1SearchIterator.html" title="SearchIterator is an abstract base class that provides methods to search for a pattern within a text ...">SearchIterator</a> </dd>
<dd>
<a class="el" href="classicu_1_1RuleBasedCollator.html" title="The RuleBasedCollator class provides the implementation of Collator, using data-driven tables...">RuleBasedCollator</a> </dd></dl>
<dl class="section since"><dt>Since</dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="stsearch_8h_source.html#l00134">134</a> of file <a class="el" href="stsearch_8h_source.html">stsearch.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4fe92827a0a43b6efdead03ca65ad720"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::StringSearch::StringSearch </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>pattern</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>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1BreakIterator.html">BreakIterator</a> *&#160;</td>
          <td class="paramname"><em>breakiter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creating a <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> instance using the argument locale language rule set. </p>
<p>A collator will be created in the process, which will be owned by this instance and will be deleted during destruction </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pattern</td><td>The text for which this object will search. </td></tr>
    <tr><td class="paramname">text</td><td>The text in which to search for the pattern. </td></tr>
    <tr><td class="paramname">locale</td><td>A locale which defines the language-sensitive comparison rules used to determine whether text in the pattern and target matches. </td></tr>
    <tr><td class="paramname">breakiter</td><td>A <code><a class="el" href="classicu_1_1BreakIterator.html" title="The BreakIterator class implements methods for finding the location of boundaries in text...">BreakIterator</a></code> object used to constrain the matches that are found. Matches whose start and end indices in the target text are not boundaries as determined by the <code><a class="el" href="classicu_1_1BreakIterator.html" title="The BreakIterator class implements methods for finding the location of boundaries in text...">BreakIterator</a></code> are ignored. If this behavior is not desired, <code>NULL</code> can be passed in instead. </td></tr>
    <tr><td class="paramname">status</td><td>for errors if any. If pattern or text is NULL, or if either the length of pattern or text is 0 then an U_ILLEGAL_ARGUMENT_ERROR is returned. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004424">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a906ff8d5fefde96a158b1dfc5f20e744"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::StringSearch::StringSearch </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>pattern</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>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1RuleBasedCollator.html">RuleBasedCollator</a> *&#160;</td>
          <td class="paramname"><em>coll</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1BreakIterator.html">BreakIterator</a> *&#160;</td>
          <td class="paramname"><em>breakiter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creating a <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> instance using the argument collator language rule set. </p>
<p>Note, user retains the ownership of this collator, it does not get destroyed during this instance's destruction. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pattern</td><td>The text for which this object will search. </td></tr>
    <tr><td class="paramname">text</td><td>The text in which to search for the pattern. </td></tr>
    <tr><td class="paramname">coll</td><td>A <code><a class="el" href="classicu_1_1RuleBasedCollator.html" title="The RuleBasedCollator class provides the implementation of Collator, using data-driven tables...">RuleBasedCollator</a></code> object which defines the language-sensitive comparison rules used to determine whether text in the pattern and target matches. User is responsible for the clearing of this object. </td></tr>
    <tr><td class="paramname">breakiter</td><td>A <code><a class="el" href="classicu_1_1BreakIterator.html" title="The BreakIterator class implements methods for finding the location of boundaries in text...">BreakIterator</a></code> object used to constrain the matches that are found. Matches whose start and end indices in the target text are not boundaries as determined by the <code><a class="el" href="classicu_1_1BreakIterator.html" title="The BreakIterator class implements methods for finding the location of boundaries in text...">BreakIterator</a></code> are ignored. If this behavior is not desired, <code>NULL</code> can be passed in instead. </td></tr>
    <tr><td class="paramname">status</td><td>for errors if any. If either the length of pattern or text is 0 then an U_ILLEGAL_ARGUMENT_ERROR is returned. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004425">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a5e6464834924991b8b28dd3b616899cb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::StringSearch::StringSearch </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1CharacterIterator.html">CharacterIterator</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1BreakIterator.html">BreakIterator</a> *&#160;</td>
          <td class="paramname"><em>breakiter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creating a <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> instance using the argument locale language rule set. </p>
<p>A collator will be created in the process, which will be owned by this instance and will be deleted during destruction </p>
<p>Note: No parsing of the text within the <code><a class="el" href="classicu_1_1CharacterIterator.html" title="Abstract class that defines an API for iteration on text objects. ">CharacterIterator</a></code> will be done during searching for this version. The block of text in <code><a class="el" href="classicu_1_1CharacterIterator.html" title="Abstract class that defines an API for iteration on text objects. ">CharacterIterator</a></code> will be used as it is. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pattern</td><td>The text for which this object will search. </td></tr>
    <tr><td class="paramname">text</td><td>The text iterator in which to search for the pattern. </td></tr>
    <tr><td class="paramname">locale</td><td>A locale which defines the language-sensitive comparison rules used to determine whether text in the pattern and target matches. User is responsible for the clearing of this object. </td></tr>
    <tr><td class="paramname">breakiter</td><td>A <code><a class="el" href="classicu_1_1BreakIterator.html" title="The BreakIterator class implements methods for finding the location of boundaries in text...">BreakIterator</a></code> object used to constrain the matches that are found. Matches whose start and end indices in the target text are not boundaries as determined by the <code><a class="el" href="classicu_1_1BreakIterator.html" title="The BreakIterator class implements methods for finding the location of boundaries in text...">BreakIterator</a></code> are ignored. If this behavior is not desired, <code>NULL</code> can be passed in instead. </td></tr>
    <tr><td class="paramname">status</td><td>for errors if any. If either the length of pattern or text is 0 then an U_ILLEGAL_ARGUMENT_ERROR is returned. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004426">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ac58431056321b9af834d07015530bade"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::StringSearch::StringSearch </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1CharacterIterator.html">CharacterIterator</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1RuleBasedCollator.html">RuleBasedCollator</a> *&#160;</td>
          <td class="paramname"><em>coll</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1BreakIterator.html">BreakIterator</a> *&#160;</td>
          <td class="paramname"><em>breakiter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creating a <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> instance using the argument collator language rule set. </p>
<p>Note, user retains the ownership of this collator, it does not get destroyed during this instance's destruction. </p>
<p>Note: No parsing of the text within the <code><a class="el" href="classicu_1_1CharacterIterator.html" title="Abstract class that defines an API for iteration on text objects. ">CharacterIterator</a></code> will be done during searching for this version. The block of text in <code><a class="el" href="classicu_1_1CharacterIterator.html" title="Abstract class that defines an API for iteration on text objects. ">CharacterIterator</a></code> will be used as it is. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pattern</td><td>The text for which this object will search. </td></tr>
    <tr><td class="paramname">text</td><td>The text in which to search for the pattern. </td></tr>
    <tr><td class="paramname">coll</td><td>A <code><a class="el" href="classicu_1_1RuleBasedCollator.html" title="The RuleBasedCollator class provides the implementation of Collator, using data-driven tables...">RuleBasedCollator</a></code> object which defines the language-sensitive comparison rules used to determine whether text in the pattern and target matches. User is responsible for the clearing of this object. </td></tr>
    <tr><td class="paramname">breakiter</td><td>A <code><a class="el" href="classicu_1_1BreakIterator.html" title="The BreakIterator class implements methods for finding the location of boundaries in text...">BreakIterator</a></code> object used to constrain the matches that are found. Matches whose start and end indices in the target text are not boundaries as determined by the <code><a class="el" href="classicu_1_1BreakIterator.html" title="The BreakIterator class implements methods for finding the location of boundaries in text...">BreakIterator</a></code> are ignored. If this behavior is not desired, <code>NULL</code> can be passed in instead. </td></tr>
    <tr><td class="paramname">status</td><td>for errors if any. If either the length of pattern or text is 0 then an U_ILLEGAL_ARGUMENT_ERROR is returned. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004427">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a472264e23bfeef648112e8e93de5d6fb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::StringSearch::StringSearch </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1StringSearch.html">StringSearch</a> &amp;&#160;</td>
          <td class="paramname"><em>that</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copy constructor that creates a <a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a> instance with the same behavior, and iterating over the same text. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">that</td><td><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a> instance to be copied. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004428">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="af0babc6f8457469f81d812de0fb79d13"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual icu::StringSearch::~StringSearch </td>
          <td>(</td>
          <td class="paramtype">void&#160;</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>
<p>Cleans up the search iterator data struct. If a collator is created in the constructor, it will be destroyed here. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable004429">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a68ea08d58a61a39a9fb4aa3be15afc2d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classicu_1_1StringSearch.html">StringSearch</a>* icu::StringSearch::clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clone this object. </p>
<p>Clones can be used concurrently in multiple threads. If an error occurs, then NULL is returned. 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_1StringSearch.html#a6cc3df0d361bd9e0717d2d4709dc4092" title="ICU &quot;poor man&#39;s RTTI&quot;, returns a UClassID for the actual class. ">getDynamicClassID</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004430">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

</div>
</div>
<a class="anchor" id="a2b85f331f3d71c140e2cff9502e6f0fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classicu_1_1RuleBasedCollator.html">RuleBasedCollator</a>* icu::StringSearch::getCollator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the collator used for the language rules. </p>
<p>Caller may modify but <b>must not</b> delete the <code><a class="el" href="classicu_1_1RuleBasedCollator.html" title="The RuleBasedCollator class provides the implementation of Collator, using data-driven tables...">RuleBasedCollator</a></code>! Modifications to this collator will affect the original collator passed in to the <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a>&gt;</code> constructor or to setCollator, if any. </p><dl class="section return"><dt>Returns</dt><dd>collator used for string search </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004437">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a6cc3df0d361bd9e0717d2d4709dc4092"></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="uobject_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> icu::StringSearch::getDynamicClassID </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>ICU "poor man's RTTI", returns a UClassID for the actual class. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004443">Stable:</a></b></dt><dd>ICU 2.2 </dd></dl>

<p>Reimplemented from <a class="el" href="classicu_1_1UObject.html#a1aa93096e880907080b503ff1fb0f8bc">icu::UObject</a>.</p>

</div>
</div>
<a class="anchor" id="aa949bee2a36470aafaab45acbcfbd109"></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::StringSearch::getOffset </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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return the current index in the text being searched. </p>
<p>If the iteration has gone past the end of the text (or past the beginning for a backwards search), USEARCH_DONE is returned. </p><dl class="section return"><dt>Returns</dt><dd>current index in the text being searched. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004434">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classicu_1_1SearchIterator.html#a68dc87e96c2eeb4d0dd8281e1e028cdb">icu::SearchIterator</a>.</p>

</div>
</div>
<a class="anchor" id="a2c34065a6903e1923813633e794b2be4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a>&amp; icu::StringSearch::getPattern </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the search pattern. </p>
<dl class="section return"><dt>Returns</dt><dd>pattern used for matching </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004440">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a9bfad1285f91d953936b57cf9028c860"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="uobject_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> icu::StringSearch::getStaticClassID </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>ICU "poor man's RTTI", returns a UClassID for this class. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004444">Stable:</a></b></dt><dd>ICU 2.2 </dd></dl>

</div>
</div>
<a class="anchor" id="a8bfd6bf33a0f5c5006539a8633d573d9"></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::StringSearch::handleNext </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</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">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Search forward for matching text, starting at a given location. </p>
<p>Clients should not call this method directly; instead they should call <a class="el" href="classicu_1_1SearchIterator.html#a2aa0e7427fc4ff817d99d5e1d6f1fbd9">SearchIterator#next</a>. </p>
<p>If a match is found, this method returns the index at which the match starts and calls <a class="el" href="classicu_1_1SearchIterator.html#a2e4b9a280c1a088a27a875d49436cc95">SearchIterator#setMatchLength</a> with the number of characters in the target text that make up the match. If no match is found, the method returns <code>USEARCH_DONE</code>. </p>
<p>The <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> is adjusted so that its current index (as returned by <a class="el" href="classicu_1_1StringSearch.html#aa949bee2a36470aafaab45acbcfbd109">getOffset</a>) is the match position if one was found. If a match is not found, <code>USEARCH_DONE</code> will be returned and the <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> will be adjusted to the index USEARCH_DONE. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">position</td><td>The index in the target text at which the search starts </td></tr>
    <tr><td class="paramname">status</td><td>for errors if any occurs </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The index at which the matched text in the target starts, or USEARCH_DONE if no match was found. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004445">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classicu_1_1SearchIterator.html#a523954788b75b23b416ec6cf98ca49bb">icu::SearchIterator</a>.</p>

</div>
</div>
<a class="anchor" id="a8f74971bbf6699cdfdfce829b5b89c8a"></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::StringSearch::handlePrev </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</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">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Search backward for matching text, starting at a given location. </p>
<p>Clients should not call this method directly; instead they should call <code><a class="el" href="classicu_1_1SearchIterator.html#a5a95215dfaa7228f5c364a3f5ffe25fc" title="Returns the index of the previous point at which the string text matches the search pattern...">SearchIterator.previous()</a></code>, which this method overrides. </p>
<p>If a match is found, this method returns the index at which the match starts and calls <a class="el" href="classicu_1_1SearchIterator.html#a2e4b9a280c1a088a27a875d49436cc95">SearchIterator#setMatchLength</a> with the number of characters in the target text that make up the match. If no match is found, the method returns <code>USEARCH_DONE</code>. </p>
<p>The <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> is adjusted so that its current index (as returned by <a class="el" href="classicu_1_1StringSearch.html#aa949bee2a36470aafaab45acbcfbd109">getOffset</a>) is the match position if one was found. If a match is not found, <code>USEARCH_DONE</code> will be returned and the <code><a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a></code> will be adjusted to the index USEARCH_DONE. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">position</td><td>The index in the target text at which the search starts. </td></tr>
    <tr><td class="paramname">status</td><td>for errors if any occurs </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The index at which the matched text in the target starts, or USEARCH_DONE if no match was found. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004446">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classicu_1_1SearchIterator.html#ac9faec791507e9797ebdbef1daad7488">icu::SearchIterator</a>.</p>

</div>
</div>
<a class="anchor" id="a63bb44cbf4d60d74df6235eef91f8637"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classicu_1_1StringSearch.html">StringSearch</a>&amp; icu::StringSearch::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1StringSearch.html">StringSearch</a> &amp;&#160;</td>
          <td class="paramname"><em>that</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Assignment operator. </p>
<p>Sets this iterator to have the same behavior, and iterate over the same text, as the one passed in. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">that</td><td>instance to be copied. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004431">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a6dc6e34165f34ce59ee08b7582e7b1b3"></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::StringSearch::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1SearchIterator.html">SearchIterator</a> &amp;&#160;</td>
          <td class="paramname"><em>that</em></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>Equality operator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">that</td><td>instance to be compared. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE if both instances have the same attributes, breakiterators, collators and iterate over the same text while looking for the same pattern. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004432">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classicu_1_1SearchIterator.html#a6f0f709411aec1c2a3cf5cc74abe5d37">icu::SearchIterator</a>.</p>

</div>
</div>
<a class="anchor" id="ae1e250e16e7fe837fd363b22c8dc51e1"></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::StringSearch::reset </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>Reset the iteration. </p>
<p>Search will begin at the start of the text string if a forward iteration is initiated before a backwards iteration. Otherwise if a backwards iteration is initiated before a forwards iteration, the search will begin at the end of the text string. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable004441">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classicu_1_1SearchIterator.html#aab97e2fff5f5bb3dc01d34801d613d29">icu::SearchIterator</a>.</p>

</div>
</div>
<a class="anchor" id="a01f4fef2ae626a1cd79bd4a38772dea2"></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_1SearchIterator.html">SearchIterator</a>* icu::StringSearch::safeClone </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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a copy of <a class="el" href="classicu_1_1StringSearch.html" title="StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...">StringSearch</a> with the same behavior, and iterating over the same text, as this one. </p>
<p>Note that all data will be replicated, except for the user-specified collator and the breakiterator. </p><dl class="section return"><dt>Returns</dt><dd>cloned object </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004442">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classicu_1_1SearchIterator.html#a690526d7768ccee24d326ef2f454dec4">icu::SearchIterator</a>.</p>

</div>
</div>
<a class="anchor" id="aa64c5ad544ae6bdfa87985060d37e823"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void icu::StringSearch::setCollator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classicu_1_1RuleBasedCollator.html">RuleBasedCollator</a> *&#160;</td>
          <td class="paramname"><em>coll</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the collator used for the language rules. </p>
<p>User retains the ownership of this collator, thus the responsibility of deletion lies with the user. The iterator's position will not be changed by this method. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">coll</td><td>collator </td></tr>
    <tr><td class="paramname">status</td><td>for errors if any </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004438">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a8f42063b84afbdcf4e4ba9fcec33985d"></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::StringSearch::setOffset </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets the index to point to the given position, and clears any state that's affected. </p>
<p>This method takes the argument index and sets the position in the text string accordingly without checking if the index is pointing to a valid starting point to begin searching. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">position</td><td>within the text to be set. If position is less than or greater than the text range for searching, an U_INDEX_OUTOFBOUNDS_ERROR will be returned </td></tr>
    <tr><td class="paramname">status</td><td>for errors if it occurs </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004433">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classicu_1_1SearchIterator.html#ad873328495584be985a857e811a35b75">icu::SearchIterator</a>.</p>

</div>
</div>
<a class="anchor" id="ab8caa9d0a452bfeebf12d8438bfb0ded"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void icu::StringSearch::setPattern </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the pattern used for matching. </p>
<p>The iterator's position will not be changed by this method. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pattern</td><td>search pattern to be found </td></tr>
    <tr><td class="paramname">status</td><td>for errors if any. If the pattern length is 0 then an U_ILLEGAL_ARGUMENT_ERROR is returned. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004439">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ac53e95dd30fc6c234ed866b074450ea3"></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::StringSearch::setText </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>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the target text to be searched. </p>
<p>Text iteration will hence begin at the start of the text string. This method is useful if you want to re-use an iterator to search for the same pattern within a different body of text. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>text string to be searched </td></tr>
    <tr><td class="paramname">status</td><td>for errors if any. If the text length is 0 then an U_ILLEGAL_ARGUMENT_ERROR is returned. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004435">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classicu_1_1SearchIterator.html#a76447120d17fd963a4b9caf73758ab05">icu::SearchIterator</a>.</p>

</div>
</div>
<a class="anchor" id="afc002ea77e043044596039c5ce7f9cc5"></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::StringSearch::setText </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classicu_1_1CharacterIterator.html">CharacterIterator</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the target text to be searched. </p>
<p>Text iteration will hence begin at the start of the text string. This method is useful if you want to re-use an iterator to search for the same pattern within a different body of text. Note: No parsing of the text within the <code><a class="el" href="classicu_1_1CharacterIterator.html" title="Abstract class that defines an API for iteration on text objects. ">CharacterIterator</a></code> will be done during searching for this version. The block of text in <code><a class="el" href="classicu_1_1CharacterIterator.html" title="Abstract class that defines an API for iteration on text objects. ">CharacterIterator</a></code> will be used as it is. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>text string to be searched </td></tr>
    <tr><td class="paramname">status</td><td>for errors if any. If the text length is 0 then an U_ILLEGAL_ARGUMENT_ERROR is returned. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004436">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classicu_1_1SearchIterator.html#ad99a866c36177799e3648aab1a499597">icu::SearchIterator</a>.</p>

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