<!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: unimatch.h Source File</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_bdd9a5d540de89e9fe90efdfc6973a4f.html">common</a></li><li class="navelem"><a class="el" href="dir_f59c6450ff718ff1b085cfd1c36acbd7.html">unicode</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">unimatch.h</div> </div> </div><!--header--> <div class="contents"> <a href="unimatch_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">* Copyright (C) 2001-2005, International Business Machines Corporation and others. All Rights Reserved.</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">**********************************************************************</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">* Date Name Description</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">* 07/18/01 aliu Creation.</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">**********************************************************************</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">*/</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#ifndef UNIMATCH_H</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor"></span><span class="preprocessor">#define UNIMATCH_H</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="utypes_8h.html" title="Basic definitions for ICU, for both C and C++ APIs.">unicode/utypes.h</a>"</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <a class="code" href="uversion_8h.html#a7d9374e037299886d4192b763b4c5e8b" title="This is used to begin a declaration of a public ICU C++ API.">U_NAMESPACE_BEGIN</a></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">class </span>Replaceable;</div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">class </span>UnicodeString;</div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">class </span>UnicodeSet;</div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div> <div class="line"><a name="l00030"></a><span class="lineno"><a class="code" href="namespaceicu.html#a6b6eaca969662d8185a58bb2e2e68d0f"> 30</a></span> <span class="keyword">enum</span> <a class="code" href="namespaceicu.html#a6b6eaca969662d8185a58bb2e2e68d0f" title="Constants returned by UnicodeMatcher::matches() indicating the degree of match.">UMatchDegree</a> {</div> <div class="line"><a name="l00038"></a><span class="lineno"><a class="code" href="namespaceicu.html#a6b6eaca969662d8185a58bb2e2e68d0fa2c421fcfe4b305de6f4fc80089d5fffa"> 38</a></span>  <a class="code" href="namespaceicu.html#a6b6eaca969662d8185a58bb2e2e68d0fa2c421fcfe4b305de6f4fc80089d5fffa" title="Constant returned by matches() indicating a mismatch between the text and this matcher.">U_MISMATCH</a>,</div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div> <div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="namespaceicu.html#a6b6eaca969662d8185a58bb2e2e68d0fac69651d3521b10c1b4b4980cc8d69598"> 50</a></span>  <a class="code" href="namespaceicu.html#a6b6eaca969662d8185a58bb2e2e68d0fac69651d3521b10c1b4b4980cc8d69598" title="Constant returned by matches() indicating a partial match between the text and this matcher...">U_PARTIAL_MATCH</a>,</div> <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div> <div class="line"><a name="l00060"></a><span class="lineno"><a class="code" href="namespaceicu.html#a6b6eaca969662d8185a58bb2e2e68d0fad05ce45bf573b88d340c190d8f25cfe5"> 60</a></span>  <a class="code" href="namespaceicu.html#a6b6eaca969662d8185a58bb2e2e68d0fad05ce45bf573b88d340c190d8f25cfe5" title="Constant returned by matches() indicating a complete match between the text and this matcher...">U_MATCH</a></div> <div class="line"><a name="l00061"></a><span class="lineno"> 61</span> };</div> <div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div> <div class="line"><a name="l00068"></a><span class="lineno"><a class="code" href="classicu_1_1UnicodeMatcher.html"> 68</a></span> <span class="keyword">class </span><a class="code" href="utypes_8h.html#a559955ec3bc692657c5d8b1c6de8e334" title="Set to export library symbols from inside the common library, and to import them from outside...">U_COMMON_API</a> <a class="code" href="classicu_1_1UnicodeMatcher.html" title="UnicodeMatcher defines a protocol for objects that can match a range of characters in a Replaceable s...">UnicodeMatcher</a> <span class="comment">/* not : public UObject because this is an interface/mixin class */</span> {</div> <div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div> <div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">public</span>:</div> <div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keyword">virtual</span> ~<a class="code" href="classicu_1_1UnicodeMatcher.html" title="UnicodeMatcher defines a protocol for objects that can match a range of characters in a Replaceable s...">UnicodeMatcher</a>();</div> <div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div> <div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keyword">virtual</span> <a class="code" href="namespaceicu.html#a6b6eaca969662d8185a58bb2e2e68d0f" title="Constants returned by UnicodeMatcher::matches() indicating the degree of match.">UMatchDegree</a> matches(<span class="keyword">const</span> <a class="code" href="classicu_1_1Replaceable.html" title="Replaceable is an abstract base class representing a string of characters that supports the replaceme...">Replaceable</a>& text,</div> <div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  int32_t& offset,</div> <div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  int32_t limit,</div> <div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> incremental) = 0;</div> <div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div> <div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keyword">virtual</span> <a class="code" href="classicu_1_1UnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>& toPattern(<a class="code" href="classicu_1_1UnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>& result,</div> <div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> escapeUnprintable = <a class="code" href="umachine_8h.html#aa93f0eb578d23995850d61f7d61c55c1" title="The FALSE value of a UBool.">FALSE</a>) <span class="keyword">const</span> = 0;</div> <div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div> <div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> matchesIndexValue(uint8_t v) <span class="keyword">const</span> = 0;</div> <div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div> <div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> addMatchSetTo(<a class="code" href="classicu_1_1UnicodeSet.html" title="A mutable set of Unicode characters and multicharacter strings.">UnicodeSet</a>& toUnionTo) <span class="keyword">const</span> = 0;</div> <div class="line"><a name="l00159"></a><span class="lineno"> 159</span> };</div> <div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div> <div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <a class="code" href="uversion_8h.html#a3da1f00f3b02976ac53c014a3e4c0933" title="This is used to end a declaration of a public ICU C++ API.">U_NAMESPACE_END</a></div> <div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div> <div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="preprocessor">#endif</span></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Fri Oct 4 2013 14:10:21 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>