Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 280da2a01a3d16776505ea3f476de84f > files > 121

icu-doc-3.8.1-2mdv2008.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ICU 3.8: RegexPattern Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li id="current"><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
  </ul></div>
<h1>RegexPattern Class Reference</h1><!-- doxytag: class="RegexPattern" --><!-- doxytag: inherits="UObject" -->Class <code><a class="el" href="classRegexPattern.html">RegexPattern</a></code> represents a compiled regular expression.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="regex_8h-source.html">regex.h</a>&gt;</code>
<p>
<p>Inheritance diagram for RegexPattern:
<p><center><img src="classRegexPattern.png" usemap="#RegexPattern_map" border="0" alt=""></center>
<map name="RegexPattern_map">
<area href="classUObject.html" alt="UObject" shape="rect" coords="0,56,87,80">
<area href="classUMemory.html" alt="UMemory" shape="rect" coords="0,0,87,24">
</map>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#be4c71b210cde0c481885d808ab5b3c0">RegexPattern</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">default constructor.  <a href="#be4c71b210cde0c481885d808ab5b3c0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#230936f735381b22b6647ae4c654f9f6">RegexPattern</a> (const <a class="el" href="classRegexPattern.html">RegexPattern</a> &amp;source)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy Constructor.  <a href="#230936f735381b22b6647ae4c654f9f6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#59c4a8cb10be3904fc0bfc088c4da5e7">~RegexPattern</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#59c4a8cb10be3904fc0bfc088c4da5e7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#e524084f9aae7272e8703fef1bb13e84">operator==</a> (const <a class="el" href="classRegexPattern.html">RegexPattern</a> &amp;that) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Comparison operator.  <a href="#e524084f9aae7272e8703fef1bb13e84"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#09a369dd667a476dba59b0eadece28f3">operator!=</a> (const <a class="el" href="classRegexPattern.html">RegexPattern</a> &amp;that) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Comparison operator.  <a href="#09a369dd667a476dba59b0eadece28f3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classRegexPattern.html">RegexPattern</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#d71085b753bbc297b3cbc4e0d2d4f1e7">operator=</a> (const <a class="el" href="classRegexPattern.html">RegexPattern</a> &amp;source)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator.  <a href="#d71085b753bbc297b3cbc4e0d2d4f1e7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classRegexPattern.html">RegexPattern</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#c0fdb5ad7d63a9114cb118fff493e07d">clone</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create an exact copy of this <a class="el" href="classRegexPattern.html">RegexPattern</a> object.  <a href="#c0fdb5ad7d63a9114cb118fff493e07d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#435d1572bf3f880d55459d9805097f62">uint32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#f0a2626ac09eba35c481209928bbc94b">flags</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the match mode flags that were used when compiling this pattern.  <a href="#f0a2626ac09eba35c481209928bbc94b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classRegexMatcher.html">RegexMatcher</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#30fe2131813a753a511aedd1fb3fda39">matcher</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;input, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a <a class="el" href="classRegexMatcher.html">RegexMatcher</a> that will match the given input against this pattern.  <a href="#30fe2131813a753a511aedd1fb3fda39"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classRegexMatcher.html">RegexMatcher</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#5239697968f42be49f3ccc3e4e71c376">matcher</a> (<a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a <a class="el" href="classRegexMatcher.html">RegexMatcher</a> that will match against this pattern.  <a href="#5239697968f42be49f3ccc3e4e71c376"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#2c341613679a5ef934b95f2336127c8b">pattern</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the regular expression from which this pattern was compiled.  <a href="#2c341613679a5ef934b95f2336127c8b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#2443b40c8905b4255342083dc4774110">split</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;input, <a class="el" href="classUnicodeString.html">UnicodeString</a> dest[], <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> destCapacity, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Split a string into fields.  <a href="#2443b40c8905b4255342083dc4774110"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#c795e6c7f257e2361773fe88a614f221">getDynamicClassID</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for the actual class.  <a href="#c795e6c7f257e2361773fe88a614f221"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classRegexPattern.html">RegexPattern</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#aa0af54c0e4f96bdef2e7d057a714629">compile</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;regex, <a class="el" href="structUParseError.html">UParseError</a> &amp;pe, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html">RegexPattern</a> object.  <a href="#aa0af54c0e4f96bdef2e7d057a714629"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classRegexPattern.html">RegexPattern</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#9157d6a29f28cdcdbcd88342e6a04e0c">compile</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;regex, <a class="el" href="pwin32_8h.html#435d1572bf3f880d55459d9805097f62">uint32_t</a> flags, <a class="el" href="structUParseError.html">UParseError</a> &amp;pe, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html">RegexPattern</a> object using the specified match mode flags.  <a href="#9157d6a29f28cdcdbcd88342e6a04e0c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classRegexPattern.html">RegexPattern</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#1e65a3b5143a98c8354bd3a30da3ec7c">compile</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;regex, <a class="el" href="pwin32_8h.html#435d1572bf3f880d55459d9805097f62">uint32_t</a> flags, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html">RegexPattern</a> object using the specified match mode flags.  <a href="#1e65a3b5143a98c8354bd3a30da3ec7c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#01d3ae1eb52cf449229904da410db587">matches</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;regex, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;input, <a class="el" href="structUParseError.html">UParseError</a> &amp;pe, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Test whether a string matches a regular expression.  <a href="#01d3ae1eb52cf449229904da410db587"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#1f4513a89868ed23c4e49eadebbf00dd">getStaticClassID</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for this class.  <a href="#1f4513a89868ed23c4e49eadebbf00dd"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="37cf9c695a0f0d4c606794205508fed2"></a><!-- doxytag: member="RegexPattern::RegexCompile" ref="37cf9c695a0f0d4c606794205508fed2" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#37cf9c695a0f0d4c606794205508fed2">RegexCompile</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="da49313a58b9d9eb990246aa6c72a379"></a><!-- doxytag: member="RegexPattern::RegexMatcher" ref="da49313a58b9d9eb990246aa6c72a379" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#da49313a58b9d9eb990246aa6c72a379">RegexMatcher</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c2144b0e5f518674dffbf166bb18bc3"></a><!-- doxytag: member="RegexPattern::RegexCImpl" ref="1c2144b0e5f518674dffbf166bb18bc3" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#1c2144b0e5f518674dffbf166bb18bc3">RegexCImpl</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Class <code><a class="el" href="classRegexPattern.html">RegexPattern</a></code> represents a compiled regular expression. 
<p>
It includes factory methods for creating a <a class="el" href="classRegexPattern.html">RegexPattern</a> object from the source (string) form of a regular expression, methods for creating RegexMatchers that allow the pattern to be applied to input text, and a few convenience methods for simple common uses of regular expressions.<p>
Class <a class="el" href="classRegexPattern.html">RegexPattern</a> is not intended to be subclassed.<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002611">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>

<p>
Definition at line <a class="el" href="regex_8h-source.html#l00097">97</a> of file <a class="el" href="regex_8h-source.html">regex.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="be4c71b210cde0c481885d808ab5b3c0"></a><!-- doxytag: member="RegexPattern::RegexPattern" ref="be4c71b210cde0c481885d808ab5b3c0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RegexPattern::RegexPattern           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
default constructor. 
<p>
Create a <a class="el" href="classRegexPattern.html">RegexPattern</a> object that refers to no actual pattern. Not normally needed; <a class="el" href="classRegexPattern.html">RegexPattern</a> objects are usually created using the factory method <code><a class="el" href="classRegexPattern.html#aa0af54c0e4f96bdef2e7d057a714629">compile()</a></code>.<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002613">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<a class="anchor" name="230936f735381b22b6647ae4c654f9f6"></a><!-- doxytag: member="RegexPattern::RegexPattern" ref="230936f735381b22b6647ae4c654f9f6" args="(const RegexPattern &amp;source)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RegexPattern::RegexPattern           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classRegexPattern.html">RegexPattern</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>source</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Copy Constructor. 
<p>
Create a new <a class="el" href="classRegexPattern.html">RegexPattern</a> object that is equivalent to the source object. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>source</em>&nbsp;</td><td>the pattern object to be copied. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002614">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

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

<p>
Destructor. 
<p>
Note that a <a class="el" href="classRegexPattern.html">RegexPattern</a> object must persist so long as any <a class="el" href="classRegexMatcher.html">RegexMatcher</a> objects that were created from the <a class="el" href="classRegexPattern.html">RegexPattern</a> are active. <dl compact><dt><b><a class="el" href="stable.html#_stable002615">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="e524084f9aae7272e8703fef1bb13e84"></a><!-- doxytag: member="RegexPattern::operator==" ref="e524084f9aae7272e8703fef1bb13e84" args="(const RegexPattern &amp;that) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> RegexPattern::operator==           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classRegexPattern.html">RegexPattern</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>that</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Comparison operator. 
<p>
Two <a class="el" href="classRegexPattern.html">RegexPattern</a> objects are considered equal if they were constructed from identical source patterns using the same match flag settings. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>that</em>&nbsp;</td><td>a <a class="el" href="classRegexPattern.html">RegexPattern</a> object to compare with "this". </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE if the objects are equivalent. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002616">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<a class="anchor" name="09a369dd667a476dba59b0eadece28f3"></a><!-- doxytag: member="RegexPattern::operator!=" ref="09a369dd667a476dba59b0eadece28f3" args="(const RegexPattern &amp;that) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> RegexPattern::operator!=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classRegexPattern.html">RegexPattern</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>that</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Comparison operator. 
<p>
Two <a class="el" href="classRegexPattern.html">RegexPattern</a> objects are considered equal if they were constructed from identical source patterns using the same match flag settings. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>that</em>&nbsp;</td><td>a <a class="el" href="classRegexPattern.html">RegexPattern</a> object to compare with "this". </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE if the objects are different. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002617">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>
Definition at line <a class="el" href="regex_8h-source.html#l00142">142</a> of file <a class="el" href="regex_8h-source.html">regex.h</a>.
</div>
</div><p>
<a class="anchor" name="d71085b753bbc297b3cbc4e0d2d4f1e7"></a><!-- doxytag: member="RegexPattern::operator=" ref="d71085b753bbc297b3cbc4e0d2d4f1e7" args="(const RegexPattern &amp;source)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classRegexPattern.html">RegexPattern</a>&amp; RegexPattern::operator=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classRegexPattern.html">RegexPattern</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>source</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Assignment operator. 
<p>
After assignment, this <a class="el" href="classRegexPattern.html">RegexPattern</a> will behave identically to the source object. <dl compact><dt><b><a class="el" href="stable.html#_stable002618">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<a class="anchor" name="c0fdb5ad7d63a9114cb118fff493e07d"></a><!-- doxytag: member="RegexPattern::clone" ref="c0fdb5ad7d63a9114cb118fff493e07d" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classRegexPattern.html">RegexPattern</a>* RegexPattern::clone           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create an exact copy of this <a class="el" href="classRegexPattern.html">RegexPattern</a> object. 
<p>
Since <a class="el" href="classRegexPattern.html">RegexPattern</a> is not intended to be subclasses, <code><a class="el" href="classRegexPattern.html#c0fdb5ad7d63a9114cb118fff493e07d">clone()</a></code> and the copy construction are equivalent operations. <dl class="return" compact><dt><b>Returns:</b></dt><dd>the copy of this <a class="el" href="classRegexPattern.html">RegexPattern</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002619">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<a class="anchor" name="aa0af54c0e4f96bdef2e7d057a714629"></a><!-- doxytag: member="RegexPattern::compile" ref="aa0af54c0e4f96bdef2e7d057a714629" args="(const UnicodeString &amp;regex, UParseError &amp;pe, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classRegexPattern.html">RegexPattern</a>* RegexPattern::compile           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>regex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUParseError.html">UParseError</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pe</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html">RegexPattern</a> object. 
<p>
These compile methods, rather than the constructors, are the usual way that <a class="el" href="classRegexPattern.html">RegexPattern</a> objects are created.<p>
Note that <a class="el" href="classRegexPattern.html">RegexPattern</a> objects must not be deleted while <a class="el" href="classRegexMatcher.html">RegexMatcher</a> objects created from the pattern are active. RegexMatchers keep a pointer back to their pattern, so premature deletion of the pattern is a catastrophic error.<p>
All pattern match mode flags are set to their default values.<p>
Note that it is often more convenient to construct a <a class="el" href="classRegexMatcher.html">RegexMatcher</a> directly from a pattern string rather than separately compiling the pattern and then creating a <a class="el" href="classRegexMatcher.html">RegexMatcher</a> object from the pattern.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>regex</em>&nbsp;</td><td>The regular expression to be compiled. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pe</em>&nbsp;</td><td>Receives the position (line and column nubers) of any error within the regular expression.) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A regexPattern object for the compiled pattern.</dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002620">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<a class="anchor" name="9157d6a29f28cdcdbcd88342e6a04e0c"></a><!-- doxytag: member="RegexPattern::compile" ref="9157d6a29f28cdcdbcd88342e6a04e0c" args="(const UnicodeString &amp;regex, uint32_t flags, UParseError &amp;pe, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classRegexPattern.html">RegexPattern</a>* RegexPattern::compile           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>regex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#435d1572bf3f880d55459d9805097f62">uint32_t</a>&nbsp;</td>
          <td class="paramname"> <em>flags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUParseError.html">UParseError</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pe</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html">RegexPattern</a> object using the specified match mode flags. 
<p>
These compile methods, rather than the constructors, are the usual way that <a class="el" href="classRegexPattern.html">RegexPattern</a> objects are created.<p>
Note that <a class="el" href="classRegexPattern.html">RegexPattern</a> objects must not be deleted while <a class="el" href="classRegexMatcher.html">RegexMatcher</a> objects created from the pattern are active. RegexMatchers keep a pointer back to their pattern, so premature deletion of the pattern is a catastrophic error.<p>
Note that it is often more convenient to construct a <a class="el" href="classRegexMatcher.html">RegexMatcher</a> directly from a pattern string instead of than separately compiling the pattern and then creating a <a class="el" href="classRegexMatcher.html">RegexMatcher</a> object from the pattern.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>regex</em>&nbsp;</td><td>The regular expression to be compiled. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>The match mode flags to be used. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pe</em>&nbsp;</td><td>Receives the position (line and column nubers) of any error within the regular expression.) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A regexPattern object for the compiled pattern.</dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002621">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<a class="anchor" name="1e65a3b5143a98c8354bd3a30da3ec7c"></a><!-- doxytag: member="RegexPattern::compile" ref="1e65a3b5143a98c8354bd3a30da3ec7c" args="(const UnicodeString &amp;regex, uint32_t flags, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classRegexPattern.html">RegexPattern</a>* RegexPattern::compile           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>regex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#435d1572bf3f880d55459d9805097f62">uint32_t</a>&nbsp;</td>
          <td class="paramname"> <em>flags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html">RegexPattern</a> object using the specified match mode flags. 
<p>
These compile methods, rather than the constructors, are the usual way that <a class="el" href="classRegexPattern.html">RegexPattern</a> objects are created.<p>
Note that <a class="el" href="classRegexPattern.html">RegexPattern</a> objects must not be deleted while <a class="el" href="classRegexMatcher.html">RegexMatcher</a> objects created from the pattern are active. RegexMatchers keep a pointer back to their pattern, so premature deletion of the pattern is a catastrophic error.<p>
Note that it is often more convenient to construct a <a class="el" href="classRegexMatcher.html">RegexMatcher</a> directly from a pattern string instead of than separately compiling the pattern and then creating a <a class="el" href="classRegexMatcher.html">RegexMatcher</a> object from the pattern.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>regex</em>&nbsp;</td><td>The regular expression to be compiled. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>The match mode flags to be used. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A regexPattern object for the compiled pattern.</dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002622">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

</div>
</div><p>
<a class="anchor" name="f0a2626ac09eba35c481209928bbc94b"></a><!-- doxytag: member="RegexPattern::flags" ref="f0a2626ac09eba35c481209928bbc94b" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#435d1572bf3f880d55459d9805097f62">uint32_t</a> RegexPattern::flags           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the match mode flags that were used when compiling this pattern. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the match mode flags </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002623">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<a class="anchor" name="30fe2131813a753a511aedd1fb3fda39"></a><!-- doxytag: member="RegexPattern::matcher" ref="30fe2131813a753a511aedd1fb3fda39" args="(const UnicodeString &amp;input, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classRegexMatcher.html">RegexMatcher</a>* RegexPattern::matcher           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a <a class="el" href="classRegexMatcher.html">RegexMatcher</a> that will match the given input against this pattern. 
<p>
The <a class="el" href="classRegexMatcher.html">RegexMatcher</a> can then be used to perform match, find or replace operations on the input. Note that a <a class="el" href="classRegexPattern.html">RegexPattern</a> object must not be deleted while RegexMatchers created from it still exist and might possibly be used again. <p>
The matcher will retain a reference to the supplied input string, and all regexp pattern matching operations happen directly on this original string. It is critical that the string not be altered or deleted before use by the regular expression operations is complete.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>input</em>&nbsp;</td><td>The input string to which the regular expression will be applied. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classRegexMatcher.html">RegexMatcher</a> object for this pattern and input.</dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002624">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<a class="anchor" name="5239697968f42be49f3ccc3e4e71c376"></a><!-- doxytag: member="RegexPattern::matcher" ref="5239697968f42be49f3ccc3e4e71c376" args="(UErrorCode &amp;status) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classRegexMatcher.html">RegexMatcher</a>* RegexPattern::matcher           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a <a class="el" href="classRegexMatcher.html">RegexMatcher</a> that will match against this pattern. 
<p>
The <a class="el" href="classRegexMatcher.html">RegexMatcher</a> can be used to perform match, find or replace operations. Note that a <a class="el" href="classRegexPattern.html">RegexPattern</a> object must not be deleted while RegexMatchers created from it still exist and might possibly be used again.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classRegexMatcher.html">RegexMatcher</a> object for this pattern and input.</dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002625">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

</div>
</div><p>
<a class="anchor" name="01d3ae1eb52cf449229904da410db587"></a><!-- doxytag: member="RegexPattern::matches" ref="01d3ae1eb52cf449229904da410db587" args="(const UnicodeString &amp;regex, const UnicodeString &amp;input, UParseError &amp;pe, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> RegexPattern::matches           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>regex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUParseError.html">UParseError</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pe</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Test whether a string matches a regular expression. 
<p>
This convenience function both compiles the reguluar expression and applies it in a single operation. Note that if the same pattern needs to be applied repeatedly, this method will be less efficient than creating and reusing a <a class="el" href="classRegexMatcher.html">RegexMatcher</a> object.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>regex</em>&nbsp;</td><td>The regular expression </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>input</em>&nbsp;</td><td>The string data to be matched </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pe</em>&nbsp;</td><td>Receives the position of any syntax errors within the regular expression </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True if the regular expression exactly matches the full input string.</dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002626">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<a class="anchor" name="2c341613679a5ef934b95f2336127c8b"></a><!-- doxytag: member="RegexPattern::pattern" ref="2c341613679a5ef934b95f2336127c8b" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> RegexPattern::pattern           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the regular expression from which this pattern was compiled. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002627">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<a class="anchor" name="2443b40c8905b4255342083dc4774110"></a><!-- doxytag: member="RegexPattern::split" ref="2443b40c8905b4255342083dc4774110" args="(const UnicodeString &amp;input, UnicodeString dest[], int32_t destCapacity, UErrorCode &amp;status) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> RegexPattern::split           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a>&nbsp;</td>
          <td class="paramname"> <em>dest</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Split a string into fields. 
<p>
Somewhat like <a class="el" href="classRegexPattern.html#2443b40c8905b4255342083dc4774110">split()</a> from Perl. The pattern matches identify delimiters that separate the input into fields. The input data between the matches becomes the fields themselves. <p>
For the best performance on <a class="el" href="classRegexPattern.html#2443b40c8905b4255342083dc4774110">split()</a> operations, <code><a class="el" href="classRegexMatcher.html#d3a2b85b74c0345bf6f94a7c568d5191">RegexMatcher::split</a></code> is perferable to this function<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>input</em>&nbsp;</td><td>The string to be split into fields. The field delimiters match the pattern (in the "this" object) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dest</em>&nbsp;</td><td>An array of UnicodeStrings to receive the results of the split. This is an array of actual <a class="el" href="classUnicodeString.html">UnicodeString</a> objects, not an array of pointers to strings. Local (stack based) arrays can work well here. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The number of elements in the destination array. If the number of fields found is less than destCapacity, the extra strings in the destination array are not altered. If the number of destination strings is less than the number of fields, the trailing part of the input string, including any field delimiters, is placed in the last destination string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The number of fields into which the input string was split. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002628">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<a class="anchor" name="c795e6c7f257e2361773fe88a614f221"></a><!-- doxytag: member="RegexPattern::getDynamicClassID" ref="c795e6c7f257e2361773fe88a614f221" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a> RegexPattern::getDynamicClassID           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
ICU "poor man's RTTI", returns a UClassID for the actual class. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002629">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>
Implements <a class="el" href="classUObject.html#ce1dd31fb2c6f2c07dfebe8fd240ec37">UObject</a>.
</div>
</div><p>
<a class="anchor" name="1f4513a89868ed23c4e49eadebbf00dd"></a><!-- doxytag: member="RegexPattern::getStaticClassID" ref="1f4513a89868ed23c4e49eadebbf00dd" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a> RegexPattern::getStaticClassID           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="regex_8h-source.html">regex.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 14 12:59:44 2007 for ICU 3.8 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
</body>
</html>