<!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 52.1: regex.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">ICU 52.1  <span id="projectnumber">52.1</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1.2 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_73bc6a9bb617ea1bc89a10aa59ce84e4.html">i18n</a></li><li class="navelem"><a class="el" href="dir_0119ce638985e8a1561a00fdb5f76ff6.html">unicode</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#nested-classes">Data Structures</a> | <a href="#namespaces">Namespaces</a> | <a href="#define-members">Macros</a> </div> <div class="headertitle"> <div class="title">regex.h File Reference</div> </div> </div><!--header--> <div class="contents"> <p>C++ API: Regular Expressions. <a href="#details">More...</a></p> <div class="textblock"><code>#include "<a class="el" href="utypes_8h_source.html">unicode/utypes.h</a>"</code><br/> <code>#include "<a class="el" href="uobject_8h_source.html">unicode/uobject.h</a>"</code><br/> <code>#include "<a class="el" href="unistr_8h_source.html">unicode/unistr.h</a>"</code><br/> <code>#include "<a class="el" href="utext_8h_source.html">unicode/utext.h</a>"</code><br/> <code>#include "<a class="el" href="parseerr_8h_source.html">unicode/parseerr.h</a>"</code><br/> <code>#include "<a class="el" href="uregex_8h_source.html">unicode/uregex.h</a>"</code><br/> </div> <p><a href="regex_8h_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="nested-classes"></a> Data Structures</h2></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RegexPattern.html">icu::RegexPattern</a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Class <code><a class="el" href="classicu_1_1RegexPattern.html" title="Class RegexPattern represents a compiled regular expression.">RegexPattern</a></code> represents a compiled regular expression. <a href="classicu_1_1RegexPattern.html#details">More...</a><br/></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RegexMatcher.html">icu::RegexMatcher</a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">class <a class="el" href="classicu_1_1RegexMatcher.html" title="class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...">RegexMatcher</a> bundles together a regular expression pattern and input text to which the expression can be applied. <a href="classicu_1_1RegexMatcher.html#details">More...</a><br/></td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="namespaces"></a> Namespaces</h2></td></tr> <tr class="memitem:namespaceicu"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceicu.html">icu</a></td></tr> <tr class="memdesc:namespaceicu"><td class="mdescLeft"> </td><td class="mdescRight">File <a class="el" href="coll_8h.html" title="C++ API: Collation Service.">coll.h</a>. <br/></td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="define-members"></a> Macros</h2></td></tr> <tr class="memitem:adb99cedafe6d353311aac44514f846be"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="regex_8h.html#adb99cedafe6d353311aac44514f846be">RegexPatternDump</a>(pat)</td></tr> <tr class="memdesc:adb99cedafe6d353311aac44514f846be"><td class="mdescLeft"> </td><td class="mdescRight">RBBIPatternDump Debug function, displays the compiled form of a pattern. <a href="#adb99cedafe6d353311aac44514f846be"></a><br/></td></tr> </table> <a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>C++ API: Regular Expressions. </p> <h2>Regular Expression API</h2> <p>The ICU API for processing regular expressions consists of two classes, <code>RegexPattern</code> and <code>RegexMatcher</code>. <code>RegexPattern</code> objects represent a pre-processed, or compiled regular expression. They are created from a regular expression pattern string, and can be used to create <code>RegexMatcher</code> objects for the pattern.</p> <p>Class <code>RegexMatcher</code> bundles together a regular expression pattern and a target string to which the search pattern will be applied. <code>RegexMatcher</code> includes API for doing plain find or search operations, for search and replace operations, and for obtaining detailed information about bounds of a match. </p> <p>Note that by constructing <code>RegexMatcher</code> objects directly from regular expression pattern strings application code can be simplified and the explicit need for <code>RegexPattern</code> objects can usually be eliminated. </p> <p>Definition in file <a class="el" href="regex_8h_source.html">regex.h</a>.</p> </div><h2>Macro Definition Documentation</h2> <a class="anchor" id="adb99cedafe6d353311aac44514f846be"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define RegexPatternDump</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname">pat</td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>RBBIPatternDump Debug function, displays the compiled form of a pattern. </p> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000348">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl> <p>Definition at line <a class="el" href="regex_8h_source.html#l00081">81</a> of file <a class="el" href="regex_8h_source.html">regex.h</a>.</p> </div> </div> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Fri Oct 4 2013 14:10:22 for ICU 52.1 by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.1.2 </small></address> </body> </html>