Sophie

Sophie

distrib > Fedora > 17 > i386 > by-pkgid > 0508df3f0f31cdc1fec017f60572b2b0 > files > 190

libicu-doc-4.8.1.1-5.fc17.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"/>
<title>ICU 4.8.1.1: RegexPattern Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ICU 4.8.1.1
   &#160;<span id="projectnumber">4.8.1.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#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 class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#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>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">RegexPattern Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Class <code><a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a></code> represents a compiled regular expression.  
 <a href="classRegexPattern.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="regex_8h_source.html">regex.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for RegexPattern:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classRegexPattern.png" usemap="#RegexPattern_map" alt=""/>
  <map id="RegexPattern_map" name="RegexPattern_map">
<area href="classUObject.html" title="UObject is the common ICU &quot;boilerplate&quot; class." alt="UObject" shape="rect" coords="0,56,87,80"/>
<area href="classUMemory.html" title="UMemory is the common ICU base class." alt="UMemory" shape="rect" coords="0,0,87,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:abe4c71b210cde0c481885d808ab5b3c0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#abe4c71b210cde0c481885d808ab5b3c0">RegexPattern</a> ()</td></tr>
<tr class="memdesc:abe4c71b210cde0c481885d808ab5b3c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">default constructor.  <a href="#abe4c71b210cde0c481885d808ab5b3c0"></a><br/></td></tr>
<tr class="memitem:a230936f735381b22b6647ae4c654f9f6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a230936f735381b22b6647ae4c654f9f6">RegexPattern</a> (const <a class="el" href="classRegexPattern.html">RegexPattern</a> &amp;source)</td></tr>
<tr class="memdesc:a230936f735381b22b6647ae4c654f9f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy Constructor.  <a href="#a230936f735381b22b6647ae4c654f9f6"></a><br/></td></tr>
<tr class="memitem:a59c4a8cb10be3904fc0bfc088c4da5e7"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a59c4a8cb10be3904fc0bfc088c4da5e7">~RegexPattern</a> ()</td></tr>
<tr class="memdesc:a59c4a8cb10be3904fc0bfc088c4da5e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a59c4a8cb10be3904fc0bfc088c4da5e7"></a><br/></td></tr>
<tr class="memitem:abf346a4a46152c357558e155b454b331"><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="classRegexPattern.html#abf346a4a46152c357558e155b454b331">operator==</a> (const <a class="el" href="classRegexPattern.html">RegexPattern</a> &amp;that) const </td></tr>
<tr class="memdesc:abf346a4a46152c357558e155b454b331"><td class="mdescLeft">&#160;</td><td class="mdescRight">Comparison operator.  <a href="#abf346a4a46152c357558e155b454b331"></a><br/></td></tr>
<tr class="memitem:a881d8d89c3c5859420874e5a62d21be6"><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="classRegexPattern.html#a881d8d89c3c5859420874e5a62d21be6">operator!=</a> (const <a class="el" href="classRegexPattern.html">RegexPattern</a> &amp;that) const </td></tr>
<tr class="memdesc:a881d8d89c3c5859420874e5a62d21be6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Comparison operator.  <a href="#a881d8d89c3c5859420874e5a62d21be6"></a><br/></td></tr>
<tr class="memitem:ad71085b753bbc297b3cbc4e0d2d4f1e7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classRegexPattern.html">RegexPattern</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#ad71085b753bbc297b3cbc4e0d2d4f1e7">operator=</a> (const <a class="el" href="classRegexPattern.html">RegexPattern</a> &amp;source)</td></tr>
<tr class="memdesc:ad71085b753bbc297b3cbc4e0d2d4f1e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator.  <a href="#ad71085b753bbc297b3cbc4e0d2d4f1e7"></a><br/></td></tr>
<tr class="memitem:a627fddecfac7b947b8970e153bc3f8c6"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classRegexPattern.html">RegexPattern</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a627fddecfac7b947b8970e153bc3f8c6">clone</a> () const </td></tr>
<tr class="memdesc:a627fddecfac7b947b8970e153bc3f8c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an exact copy of this <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object.  <a href="#a627fddecfac7b947b8970e153bc3f8c6"></a><br/></td></tr>
<tr class="memitem:a6e4b572646038c55b2155b9943e333cb"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a6e4b572646038c55b2155b9943e333cb">flags</a> () const </td></tr>
<tr class="memdesc:a6e4b572646038c55b2155b9943e333cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the match mode flags that were used when compiling this pattern.  <a href="#a6e4b572646038c55b2155b9943e333cb"></a><br/></td></tr>
<tr class="memitem:a30fe2131813a753a511aedd1fb3fda39"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classRegexMatcher.html">RegexMatcher</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a30fe2131813a753a511aedd1fb3fda39">matcher</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;input, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:a30fe2131813a753a511aedd1fb3fda39"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> that will match the given input against this pattern.  <a href="#a30fe2131813a753a511aedd1fb3fda39"></a><br/></td></tr>
<tr class="memitem:a54f22dd483d0aa9dd398cc4d025a41f1"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classRegexMatcher.html">RegexMatcher</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a54f22dd483d0aa9dd398cc4d025a41f1">matcher</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:a54f22dd483d0aa9dd398cc4d025a41f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> that will match against this pattern.  <a href="#a54f22dd483d0aa9dd398cc4d025a41f1"></a><br/></td></tr>
<tr class="memitem:a54e9433c3a438450afa8685d826ad355"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a54e9433c3a438450afa8685d826ad355">pattern</a> () const </td></tr>
<tr class="memdesc:a54e9433c3a438450afa8685d826ad355"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the regular expression from which this pattern was compiled.  <a href="#a54e9433c3a438450afa8685d826ad355"></a><br/></td></tr>
<tr class="memitem:a0fb728f229575c7f6097769706b747d5"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structUText.html">UText</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a0fb728f229575c7f6097769706b747d5">patternText</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:a0fb728f229575c7f6097769706b747d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the regular expression from which this pattern was compiled.  <a href="#a0fb728f229575c7f6097769706b747d5"></a><br/></td></tr>
<tr class="memitem:a3dc9b8d5bb5f12976e70bfcf023229e3"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a3dc9b8d5bb5f12976e70bfcf023229e3">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#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> destCapacity, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:a3dc9b8d5bb5f12976e70bfcf023229e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Split a string into fields.  <a href="#a3dc9b8d5bb5f12976e70bfcf023229e3"></a><br/></td></tr>
<tr class="memitem:acc2575a99cc517ff8880fdc3fdace3f2"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#acc2575a99cc517ff8880fdc3fdace3f2">split</a> (<a class="el" href="structUText.html">UText</a> *input, <a class="el" href="structUText.html">UText</a> *dest[], <a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> destCapacity, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:acc2575a99cc517ff8880fdc3fdace3f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Split a string into fields.  <a href="#acc2575a99cc517ff8880fdc3fdace3f2"></a><br/></td></tr>
<tr class="memitem:aee918c8402916ef82f7337780ffb7a8b"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#aee918c8402916ef82f7337780ffb7a8b">getDynamicClassID</a> () const </td></tr>
<tr class="memdesc:aee918c8402916ef82f7337780ffb7a8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for the actual class.  <a href="#aee918c8402916ef82f7337780ffb7a8b"></a><br/></td></tr>
<tr class="inherit_header pub_methods_classUObject"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classUObject')"><img src="closed.png" alt="-"/>&nbsp;Public Member Functions inherited from <a class="el" href="classUObject.html">UObject</a></td></tr>
<tr class="memitem:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUObject.html#ace22cf29a90641ef43350deae5bedb85">~UObject</a> ()</td></tr>
<tr class="memdesc:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#ace22cf29a90641ef43350deae5bedb85"></a><br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aaa0af54c0e4f96bdef2e7d057a714629"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classRegexPattern.html">RegexPattern</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#aaa0af54c0e4f96bdef2e7d057a714629">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#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:aaa0af54c0e4f96bdef2e7d057a714629"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object.  <a href="#aaa0af54c0e4f96bdef2e7d057a714629"></a><br/></td></tr>
<tr class="memitem:a4b8c64df723d26979aa450c07b753791"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classRegexPattern.html">RegexPattern</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a4b8c64df723d26979aa450c07b753791">compile</a> (<a class="el" href="structUText.html">UText</a> *regex, <a class="el" href="structUParseError.html">UParseError</a> &amp;pe, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a4b8c64df723d26979aa450c07b753791"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object.  <a href="#a4b8c64df723d26979aa450c07b753791"></a><br/></td></tr>
<tr class="memitem:a9157d6a29f28cdcdbcd88342e6a04e0c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classRegexPattern.html">RegexPattern</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a9157d6a29f28cdcdbcd88342e6a04e0c">compile</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;regex, <a class="el" href="pwin32_8h.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> <a class="el" href="classRegexPattern.html#a6e4b572646038c55b2155b9943e333cb">flags</a>, <a class="el" href="structUParseError.html">UParseError</a> &amp;pe, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a9157d6a29f28cdcdbcd88342e6a04e0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object using the specified match mode flags.  <a href="#a9157d6a29f28cdcdbcd88342e6a04e0c"></a><br/></td></tr>
<tr class="memitem:aa65a667987afb0dd582da0895cf9eaa5"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classRegexPattern.html">RegexPattern</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#aa65a667987afb0dd582da0895cf9eaa5">compile</a> (<a class="el" href="structUText.html">UText</a> *regex, <a class="el" href="pwin32_8h.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> <a class="el" href="classRegexPattern.html#a6e4b572646038c55b2155b9943e333cb">flags</a>, <a class="el" href="structUParseError.html">UParseError</a> &amp;pe, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:aa65a667987afb0dd582da0895cf9eaa5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object using the specified match mode flags.  <a href="#aa65a667987afb0dd582da0895cf9eaa5"></a><br/></td></tr>
<tr class="memitem:a1e65a3b5143a98c8354bd3a30da3ec7c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classRegexPattern.html">RegexPattern</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a1e65a3b5143a98c8354bd3a30da3ec7c">compile</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;regex, <a class="el" href="pwin32_8h.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> <a class="el" href="classRegexPattern.html#a6e4b572646038c55b2155b9943e333cb">flags</a>, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a1e65a3b5143a98c8354bd3a30da3ec7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object using the specified match mode flags.  <a href="#a1e65a3b5143a98c8354bd3a30da3ec7c"></a><br/></td></tr>
<tr class="memitem:a062ad4716f7343d63a2f86166814fefe"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classRegexPattern.html">RegexPattern</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a062ad4716f7343d63a2f86166814fefe">compile</a> (<a class="el" href="structUText.html">UText</a> *regex, <a class="el" href="pwin32_8h.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> <a class="el" href="classRegexPattern.html#a6e4b572646038c55b2155b9943e333cb">flags</a>, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a062ad4716f7343d63a2f86166814fefe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object using the specified match mode flags.  <a href="#a062ad4716f7343d63a2f86166814fefe"></a><br/></td></tr>
<tr class="memitem:a01d3ae1eb52cf449229904da410db587"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a01d3ae1eb52cf449229904da410db587">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#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a01d3ae1eb52cf449229904da410db587"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test whether a string matches a regular expression.  <a href="#a01d3ae1eb52cf449229904da410db587"></a><br/></td></tr>
<tr class="memitem:a4c93fec282ad3d803a90d44c992fac03"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a4c93fec282ad3d803a90d44c992fac03">matches</a> (<a class="el" href="structUText.html">UText</a> *regex, <a class="el" href="structUText.html">UText</a> *input, <a class="el" href="structUParseError.html">UParseError</a> &amp;pe, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a4c93fec282ad3d803a90d44c992fac03"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test whether a string matches a regular expression.  <a href="#a4c93fec282ad3d803a90d44c992fac03"></a><br/></td></tr>
<tr class="memitem:a1f4513a89868ed23c4e49eadebbf00dd"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRegexPattern.html#a1f4513a89868ed23c4e49eadebbf00dd">getStaticClassID</a> ()</td></tr>
<tr class="memdesc:a1f4513a89868ed23c4e49eadebbf00dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for this class.  <a href="#a1f4513a89868ed23c4e49eadebbf00dd"></a><br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a37cf9c695a0f0d4c606794205508fed2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a37cf9c695a0f0d4c606794205508fed2"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>RegexCompile</b></td></tr>
<tr class="memitem:ada49313a58b9d9eb990246aa6c72a379"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ada49313a58b9d9eb990246aa6c72a379"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>RegexMatcher</b></td></tr>
<tr class="memitem:a1c2144b0e5f518674dffbf166bb18bc3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c2144b0e5f518674dffbf166bb18bc3"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>RegexCImpl</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Class <code><a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a></code> represents a compiled regular expression. </p>
<p>It includes factory methods for creating a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">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>
<p>Class <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> is not intended to be subclassed.</p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003324">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>Definition at line <a class="el" href="regex_8h_source.html#l00100">100</a> of file <a class="el" href="regex_8h_source.html">regex.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="abe4c71b210cde0c481885d808ab5b3c0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RegexPattern::RegexPattern </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>default constructor. </p>
<p>Create a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object that refers to no actual pattern. Not normally needed; <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> objects are usually created using the factory method <code><a class="el" href="classRegexPattern.html#aaa0af54c0e4f96bdef2e7d057a714629" title="Compiles the regular expression in string form into a RegexPattern object.">compile()</a></code>.</p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003326">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a230936f735381b22b6647ae4c654f9f6"></a>
<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;&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copy Constructor. </p>
<p>Create a new <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object that is equivalent to the source object. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>the pattern object to be copied. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003327">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a59c4a8cb10be3904fc0bfc088c4da5e7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual RegexPattern::~RegexPattern </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Destructor. </p>
<p>Note that a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object must persist so long as any <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> objects that were created from the <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> are active. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003328">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a627fddecfac7b947b8970e153bc3f8c6"></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="classRegexPattern.html">RegexPattern</a>* RegexPattern::clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

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

</div>
</div>
<a class="anchor" id="aaa0af54c0e4f96bdef2e7d057a714629"></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="classRegexPattern.html">RegexPattern</a>* RegexPattern::compile </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&#160;</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;&#160;</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#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">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object. </p>
<p>These compile methods, rather than the constructors, are the usual way that <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> objects are created.</p>
<p>Note that <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> objects must not be deleted while <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">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>
<p>All pattern match mode flags are set to their default values.</p>
<p>Note that it is often more convenient to construct a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> directly from a pattern string rather than separately compiling the pattern and then creating a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> object from the pattern.</p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">regex</td><td>The regular expression to be compiled. </td></tr>
    <tr><td class="paramname">pe</td><td>Receives the position (line and column nubers) of any error within the regular expression.) </td></tr>
    <tr><td class="paramname">status</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>A regexPattern object for the compiled pattern.</dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003333">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a4b8c64df723d26979aa450c07b753791"></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="classRegexPattern.html">RegexPattern</a>* RegexPattern::compile </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structUText.html">UText</a> *&#160;</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;&#160;</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#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">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object. </p>
<p>These compile methods, rather than the constructors, are the usual way that <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> objects are created.</p>
<p>Note that <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> objects must not be deleted while <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">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>
<p>All pattern match mode flags are set to their default values.</p>
<p>Note that it is often more convenient to construct a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> directly from a pattern string rather than separately compiling the pattern and then creating a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> object from the pattern.</p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">regex</td><td>The regular expression to be compiled. Note, the text referred to by this <a class="el" href="structUText.html" title="UText struct.">UText</a> must not be deleted during the lifetime of the <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object or any <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> object created from it. </td></tr>
    <tr><td class="paramname">pe</td><td>Receives the position (line and column nubers) of any error within the regular expression.) </td></tr>
    <tr><td class="paramname">status</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>A regexPattern object for the compiled pattern.</dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000313">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.6 </dd></dl>

</div>
</div>
<a class="anchor" id="a9157d6a29f28cdcdbcd88342e6a04e0c"></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="classRegexPattern.html">RegexPattern</a>* RegexPattern::compile </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&#160;</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#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</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;&#160;</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#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">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object using the specified match mode flags. </p>
<p>These compile methods, rather than the constructors, are the usual way that <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> objects are created.</p>
<p>Note that <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> objects must not be deleted while <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">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>
<p>Note that it is often more convenient to construct a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> directly from a pattern string instead of than separately compiling the pattern and then creating a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> object from the pattern.</p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">regex</td><td>The regular expression to be compiled. </td></tr>
    <tr><td class="paramname">flags</td><td>The match mode flags to be used. </td></tr>
    <tr><td class="paramname">pe</td><td>Receives the position (line and column numbers) of any error within the regular expression.) </td></tr>
    <tr><td class="paramname">status</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>A regexPattern object for the compiled pattern.</dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003334">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="aa65a667987afb0dd582da0895cf9eaa5"></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="classRegexPattern.html">RegexPattern</a>* RegexPattern::compile </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structUText.html">UText</a> *&#160;</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#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</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;&#160;</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#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">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object using the specified match mode flags. </p>
<p>These compile methods, rather than the constructors, are the usual way that <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> objects are created.</p>
<p>Note that <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> objects must not be deleted while <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">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>
<p>Note that it is often more convenient to construct a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> directly from a pattern string instead of than separately compiling the pattern and then creating a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> object from the pattern.</p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">regex</td><td>The regular expression to be compiled. Note, the text referred to by this <a class="el" href="structUText.html" title="UText struct.">UText</a> must not be deleted during the lifetime of the <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object or any <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> object created from it. </td></tr>
    <tr><td class="paramname">flags</td><td>The match mode flags to be used. </td></tr>
    <tr><td class="paramname">pe</td><td>Receives the position (line and column numbers) of any error within the regular expression.) </td></tr>
    <tr><td class="paramname">status</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>A regexPattern object for the compiled pattern.</dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000314">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.6 </dd></dl>

</div>
</div>
<a class="anchor" id="a1e65a3b5143a98c8354bd3a30da3ec7c"></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="classRegexPattern.html">RegexPattern</a>* RegexPattern::compile </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&#160;</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#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</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#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">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object using the specified match mode flags. </p>
<p>These compile methods, rather than the constructors, are the usual way that <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> objects are created.</p>
<p>Note that <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> objects must not be deleted while <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">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>
<p>Note that it is often more convenient to construct a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> directly from a pattern string instead of than separately compiling the pattern and then creating a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> object from the pattern.</p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">regex</td><td>The regular expression to be compiled. </td></tr>
    <tr><td class="paramname">flags</td><td>The match mode flags to be used. </td></tr>
    <tr><td class="paramname">status</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>A regexPattern object for the compiled pattern.</dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003335">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

</div>
</div>
<a class="anchor" id="a062ad4716f7343d63a2f86166814fefe"></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="classRegexPattern.html">RegexPattern</a>* RegexPattern::compile </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structUText.html">UText</a> *&#160;</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#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</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#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">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Compiles the regular expression in string form into a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object using the specified match mode flags. </p>
<p>These compile methods, rather than the constructors, are the usual way that <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> objects are created.</p>
<p>Note that <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> objects must not be deleted while <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">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>
<p>Note that it is often more convenient to construct a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> directly from a pattern string instead of than separately compiling the pattern and then creating a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> object from the pattern.</p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">regex</td><td>The regular expression to be compiled. Note, the text referred to by this <a class="el" href="structUText.html" title="UText struct.">UText</a> must not be deleted during the lifetime of the <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object or any <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> object created from it. </td></tr>
    <tr><td class="paramname">flags</td><td>The match mode flags to be used. </td></tr>
    <tr><td class="paramname">status</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>A regexPattern object for the compiled pattern.</dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000315">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.6 </dd></dl>

</div>
</div>
<a class="anchor" id="a6e4b572646038c55b2155b9943e333cb"></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="pwin32_8h.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> RegexPattern::flags </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>Get the match mode flags that were used when compiling this pattern. </p>
<dl class="section return"><dt>Returns:</dt><dd>the match mode flags </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003336">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="aee918c8402916ef82f7337780ffb7a8b"></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="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> RegexPattern::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#_stable003342">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>Implements <a class="el" href="classUObject.html#a9b1acc95efd89cb86ec31f2dc947a262">UObject</a>.</p>

</div>
</div>
<a class="anchor" id="a1f4513a89868ed23c4e49eadebbf00dd"></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="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> RegexPattern::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#_stable003343">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a30fe2131813a753a511aedd1fb3fda39"></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="classRegexMatcher.html">RegexMatcher</a>* RegexPattern::matcher </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&#160;</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#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> that will match the given input against this pattern. </p>
<p>The <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">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" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object must not be deleted while RegexMatchers created from it still exist and might possibly be used again. </p>
<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 class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>The input string to which the regular expression will be applied. </td></tr>
    <tr><td class="paramname">status</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>A <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> object for this pattern and input.</dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003337">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a54f22dd483d0aa9dd398cc4d025a41f1"></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="classRegexMatcher.html">RegexMatcher</a>* RegexPattern::matcher </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></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>Creates a <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> that will match against this pattern. </p>
<p>The <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> can be used to perform match, find or replace operations. Note that a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object must not be deleted while RegexMatchers created from it still exist and might possibly be used again.</p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">status</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>A <a class="el" href="classRegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> object for this pattern and input.</dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003338">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

</div>
</div>
<a class="anchor" id="a01d3ae1eb52cf449229904da410db587"></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="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> RegexPattern::matches </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&#160;</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;&#160;</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;&#160;</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#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">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Test whether a string matches a regular expression. </p>
<p>This convenience function both compiles the regular 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" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> object.</p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">regex</td><td>The regular expression </td></tr>
    <tr><td class="paramname">input</td><td>The string data to be matched </td></tr>
    <tr><td class="paramname">pe</td><td>Receives the position of any syntax errors within the regular expression </td></tr>
    <tr><td class="paramname">status</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>True if the regular expression exactly matches the full input string.</dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003339">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a4c93fec282ad3d803a90d44c992fac03"></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="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> RegexPattern::matches </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structUText.html">UText</a> *&#160;</td>
          <td class="paramname"><em>regex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUText.html">UText</a> *&#160;</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;&#160;</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#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">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Test whether a string matches a regular expression. </p>
<p>This convenience function both compiles the regular 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" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> object.</p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">regex</td><td>The regular expression </td></tr>
    <tr><td class="paramname">input</td><td>The string data to be matched </td></tr>
    <tr><td class="paramname">pe</td><td>Receives the position of any syntax errors within the regular expression </td></tr>
    <tr><td class="paramname">status</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>True if the regular expression exactly matches the full input string.</dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000316">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.6 </dd></dl>

</div>
</div>
<a class="anchor" id="a881d8d89c3c5859420874e5a62d21be6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> RegexPattern::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classRegexPattern.html">RegexPattern</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">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Comparison operator. </p>
<p>Two <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> objects are considered equal if they were constructed from identical source patterns using the same match flag settings. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">that</td><td>a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object to compare with "this". </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>TRUE if the objects are different. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003330">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>Definition at line <a class="el" href="regex_8h_source.html#l00145">145</a> of file <a class="el" href="regex_8h_source.html">regex.h</a>.</p>

<p>References <a class="el" href="stringpiece_8h.html#a7652049cbac0bfeae2cd2aa4514a3352">operator==()</a>.</p>

</div>
</div>
<a class="anchor" id="ad71085b753bbc297b3cbc4e0d2d4f1e7"></a>
<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;&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

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

</div>
</div>
<a class="anchor" id="abf346a4a46152c357558e155b454b331"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> RegexPattern::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classRegexPattern.html">RegexPattern</a> &amp;&#160;</td>
          <td class="paramname"><em>that</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Comparison operator. </p>
<p>Two <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> objects are considered equal if they were constructed from identical source patterns using the same match flag settings. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">that</td><td>a <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object to compare with "this". </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>TRUE if the objects are equivalent. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003329">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a54e9433c3a438450afa8685d826ad355"></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="classUnicodeString.html">UnicodeString</a> RegexPattern::pattern </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the regular expression from which this pattern was compiled. </p>
<p>This method will work even if the pattern was compiled from a <a class="el" href="structUText.html" title="UText struct.">UText</a>.</p>
<p>Note: If the pattern was originally compiled from a <a class="el" href="structUText.html" title="UText struct.">UText</a>, and that <a class="el" href="structUText.html" title="UText struct.">UText</a> was modified, the returned string may no longer reflect the <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003340">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a0fb728f229575c7f6097769706b747d5"></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="structUText.html">UText</a>* RegexPattern::patternText </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></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 the regular expression from which this pattern was compiled. </p>
<p>This method will work even if the pattern was compiled from a <a class="el" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>.</p>
<p>Note: This is the original input, not a clone. If the pattern was originally compiled from a <a class="el" href="structUText.html" title="UText struct.">UText</a>, and that <a class="el" href="structUText.html" title="UText struct.">UText</a> was modified, the returned <a class="el" href="structUText.html" title="UText struct.">UText</a> may no longer reflect the <a class="el" href="classRegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a> object.</p>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000317">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.6 </dd></dl>

</div>
</div>
<a class="anchor" id="a3dc9b8d5bb5f12976e70bfcf023229e3"></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="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> RegexPattern::split </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&#160;</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>&#160;</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#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&#160;</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#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Split a string into fields. </p>
<p>Somewhat like <a class="el" href="classRegexPattern.html#a3dc9b8d5bb5f12976e70bfcf023229e3" title="Split a string into fields.">split()</a> from Perl or Java. Pattern matches identify delimiters that separate the input into fields. The input data between the delimiters becomes the fields themselves.</p>
<p>If the delimiter pattern includes capture groups, the captured text will also appear in the destination array of output strings, interspersed with the fields. This is similar to Perl, but differs from Java, which ignores the presence of capture groups in the pattern.</p>
<p>Trailing empty fields will always be returned, assuming sufficient destination capacity. This differs from the default behavior for Java and Perl where trailing empty fields are not returned.</p>
<p>The number of strings produced by the split operation is returned. This count includes the strings from capture groups in the delimiter pattern. This behavior differs from Java, which ignores capture groups.</p>
<p>For the best performance on <a class="el" href="classRegexPattern.html#a3dc9b8d5bb5f12976e70bfcf023229e3" title="Split a string into fields.">split()</a> operations, <code><a class="el" href="classRegexMatcher.html#ad3a2b85b74c0345bf6f94a7c568d5191" title="Split a string into fields.">RegexMatcher::split</a></code> is preferable to this function</p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>The string to be split into fields. The field delimiters match the pattern (in the "this" object) </td></tr>
    <tr><td class="paramname">dest</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" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a> objects, not an array of pointers to strings. Local (stack based) arrays can work well here. </td></tr>
    <tr><td class="paramname">destCapacity</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 class="paramname">status</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>The number of fields into which the input string was split. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003341">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="acc2575a99cc517ff8880fdc3fdace3f2"></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="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> RegexPattern::split </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structUText.html">UText</a> *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUText.html">UText</a> *&#160;</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#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&#160;</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#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Split a string into fields. </p>
<p>Somewhat like <a class="el" href="classRegexPattern.html#a3dc9b8d5bb5f12976e70bfcf023229e3" title="Split a string into fields.">split()</a> from Perl or Java. Pattern matches identify delimiters that separate the input into fields. The input data between the delimiters becomes the fields themselves.</p>
<p>If the delimiter pattern includes capture groups, the captured text will also appear in the destination array of output strings, interspersed with the fields. This is similar to Perl, but differs from Java, which ignores the presence of capture groups in the pattern.</p>
<p>Trailing empty fields will always be returned, assuming sufficient destination capacity. This differs from the default behavior for Java and Perl where trailing empty fields are not returned.</p>
<p>The number of strings produced by the split operation is returned. This count includes the strings from capture groups in the delimiter pattern. This behavior differs from Java, which ignores capture groups.</p>
<p>For the best performance on <a class="el" href="classRegexPattern.html#a3dc9b8d5bb5f12976e70bfcf023229e3" title="Split a string into fields.">split()</a> operations, <code><a class="el" href="classRegexMatcher.html#ad3a2b85b74c0345bf6f94a7c568d5191" title="Split a string into fields.">RegexMatcher::split</a></code> is preferable to this function</p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>The string to be split into fields. The field delimiters match the pattern (in the "this" object) </td></tr>
    <tr><td class="paramname">dest</td><td>An array of mutable <a class="el" href="structUText.html" title="UText struct.">UText</a> structs to receive the results of the split. If a field is NULL, a new <a class="el" href="structUText.html" title="UText struct.">UText</a> is allocated to contain the results for that field. This new <a class="el" href="structUText.html" title="UText struct.">UText</a> is not guaranteed to be mutable. </td></tr>
    <tr><td class="paramname">destCapacity</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 class="paramname">status</td><td>A reference to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>The number of destination strings used.</dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000318">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.6 </dd></dl>

</div>
</div>
<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></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.1.1
</small></address>
</body>
</html>