<!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: usearch.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_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="headertitle"> <div class="title">usearch.h</div> </div> </div><!--header--> <div class="contents"> <a href="usearch_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">**********************************************************************</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">* Copyright (C) 2001-2011 IBM and others. All rights reserved.</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">**********************************************************************</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">* Date Name Description</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">* 06/28/2001 synwee Creation.</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="comment">*/</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#ifndef USEARCH_H</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor"></span><span class="preprocessor">#define USEARCH_H</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</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="l00013"></a><span class="lineno"> 13</span> </div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "<a class="code" href="localpointer_8h.html" title="C++ API: "Smart pointers" for use with and in ICU4C C++ code.">unicode/localpointer.h</a>"</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="ucol_8h.html" title="C API: Collator.">unicode/ucol.h</a>"</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="ucoleitr_8h.html" title="C API: UCollationElements.">unicode/ucoleitr.h</a>"</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="ubrk_8h.html" title="C API: BreakIterator.">unicode/ubrk.h</a>"</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div> <div class="line"><a name="l00140"></a><span class="lineno"><a class="code" href="usearch_8h.html#ab66c48ad34ba3832680f23da3e0f70aa"> 140</a></span> <span class="preprocessor">#define USEARCH_DONE -1</span></div> <div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="keyword">struct </span><a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a>;</div> <div class="line"><a name="l00151"></a><span class="lineno"><a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d"> 151</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a>;</div> <div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div> <div class="line"><a name="l00156"></a><span class="lineno"><a class="code" href="usearch_8h.html#aa382f146f1968a9d1dc182100b23ac03"> 156</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div> <div class="line"><a name="l00158"></a><span class="lineno"><a class="code" href="usearch_8h.html#aa382f146f1968a9d1dc182100b23ac03a5ff7dd21e97fe37e8c0831e01109ac4d"> 158</a></span>  <a class="code" href="usearch_8h.html#aa382f146f1968a9d1dc182100b23ac03a5ff7dd21e97fe37e8c0831e01109ac4d" title="Option for overlapping matches.">USEARCH_OVERLAP</a>,</div> <div class="line"><a name="l00163"></a><span class="lineno"><a class="code" href="usearch_8h.html#aa382f146f1968a9d1dc182100b23ac03a37b8d3d23099f977933aba4ee4eeff4c"> 163</a></span>  <a class="code" href="usearch_8h.html#aa382f146f1968a9d1dc182100b23ac03a37b8d3d23099f977933aba4ee4eeff4c" title="Option for canonical matches.">USEARCH_CANONICAL_MATCH</a>,</div> <div class="line"><a name="l00169"></a><span class="lineno"><a class="code" href="usearch_8h.html#aa382f146f1968a9d1dc182100b23ac03a5913e7fe1dd4718633825ffc3c7eb58d"> 169</a></span>  <a class="code" href="usearch_8h.html#aa382f146f1968a9d1dc182100b23ac03a5913e7fe1dd4718633825ffc3c7eb58d" title="Option to control how collation elements are compared.">USEARCH_ELEMENT_COMPARISON</a>,</div> <div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div> <div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  USEARCH_ATTRIBUTE_COUNT</div> <div class="line"><a name="l00172"></a><span class="lineno"> 172</span> } <a class="code" href="usearch_8h.html#aa382f146f1968a9d1dc182100b23ac03">USearchAttribute</a>;</div> <div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div> <div class="line"><a name="l00177"></a><span class="lineno"><a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1"> 177</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div> <div class="line"><a name="l00179"></a><span class="lineno"><a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1a4195142bbaf07c3e7503a4017deab57b"> 179</a></span>  <a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1a4195142bbaf07c3e7503a4017deab57b" title="Default value for any USearchAttribute.">USEARCH_DEFAULT</a> = -1,</div> <div class="line"><a name="l00181"></a><span class="lineno"><a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1a5c12e5024dc8193f02f5961d9997ecc5"> 181</a></span>  <a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1a5c12e5024dc8193f02f5961d9997ecc5" title="Value for USEARCH_OVERLAP and USEARCH_CANONICAL_MATCH.">USEARCH_OFF</a>, </div> <div class="line"><a name="l00183"></a><span class="lineno"><a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1a683745df041ae94d9b0450c08d030fb7"> 183</a></span>  <a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1a683745df041ae94d9b0450c08d030fb7" title="Value for USEARCH_OVERLAP and USEARCH_CANONICAL_MATCH.">USEARCH_ON</a>,</div> <div class="line"><a name="l00190"></a><span class="lineno"><a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1aaaa3f2ca0131d2dac6cda0af4c53903e"> 190</a></span>  <a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1aaaa3f2ca0131d2dac6cda0af4c53903e" title="Value (default) for USEARCH_ELEMENT_COMPARISON; standard collation element comparison at the specifie...">USEARCH_STANDARD_ELEMENT_COMPARISON</a>,</div> <div class="line"><a name="l00204"></a><span class="lineno"><a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1ad657b25a9167aad29f36acdbcb65d155"> 204</a></span>  <a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1ad657b25a9167aad29f36acdbcb65d155" title="Value for USEARCH_ELEMENT_COMPARISON; collation element comparison is modified to effectively provide...">USEARCH_PATTERN_BASE_WEIGHT_IS_WILDCARD</a>,</div> <div class="line"><a name="l00218"></a><span class="lineno"><a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1adfcf458c299700c875bbb28ca558506f"> 218</a></span>  <a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1adfcf458c299700c875bbb28ca558506f" title="Value for USEARCH_ELEMENT_COMPARISON.">USEARCH_ANY_BASE_WEIGHT_IS_WILDCARD</a>,</div> <div class="line"><a name="l00219"></a><span class="lineno"> 219</span> </div> <div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  USEARCH_ATTRIBUTE_VALUE_COUNT</div> <div class="line"><a name="l00221"></a><span class="lineno"> 221</span> } <a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1">USearchAttributeValue</a>;</div> <div class="line"><a name="l00222"></a><span class="lineno"> 222</span> </div> <div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="comment">/* open and close ------------------------------------------------------ */</span></div> <div class="line"><a name="l00224"></a><span class="lineno"> 224</span> </div> <div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> * U_EXPORT2 <a class="code" href="usearch_8h.html#a25915409c9af820aef82990b82b401d7" title="Creating a search iterator data struct using the argument locale language rule set.">usearch_open</a>(<span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...">UChar</a> *pattern, </div> <div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  int32_t patternlength, </div> <div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...">UChar</a> *text, </div> <div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  int32_t textlength,</div> <div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *locale,</div> <div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <a class="code" href="ubrk_8h.html#adb85bb46d5f93c87098e11deab50bef4" title="Opaque type representing an ICU Break iterator object.">UBreakIterator</a> *breakiter,</div> <div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00254"></a><span class="lineno"> 254</span> </div> <div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> * U_EXPORT2 <a class="code" href="usearch_8h.html#a5cfb0c54ef2b4bf100ce5f1febf769cc" title="Creating a search iterator data struct using the argument collator language rule set.">usearch_openFromCollator</a>(</div> <div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...">UChar</a> *pattern, </div> <div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  int32_t patternlength,</div> <div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...">UChar</a> *text, </div> <div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  int32_t textlength,</div> <div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keyword">const</span> <a class="code" href="ucol_8h.html#a3c4eeb412a5fd72762e6245aa75ca081" title="structure representing a collator object instance">UCollator</a> *collator,</div> <div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <a class="code" href="ubrk_8h.html#adb85bb46d5f93c87098e11deab50bef4" title="Opaque type representing an ICU Break iterator object.">UBreakIterator</a> *breakiter,</div> <div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00287"></a><span class="lineno"> 287</span> </div> <div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> U_EXPORT2 <a class="code" href="usearch_8h.html#a618a3f90394cecd1f76aaee4cc1b4c9d" title="Destroying and cleaning up the search iterator data struct.">usearch_close</a>(<a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *searchiter);</div> <div class="line"><a name="l00295"></a><span class="lineno"> 295</span> </div> <div class="line"><a name="l00296"></a><span class="lineno"> 296</span> <span class="preprocessor">#if U_SHOW_CPLUSPLUS_API</span></div> <div class="line"><a name="l00297"></a><span class="lineno"> 297</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00298"></a><span class="lineno"> 298</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="l00299"></a><span class="lineno"> 299</span> </div> <div class="line"><a name="l00309"></a><span class="lineno"> 309</span> <a class="code" href="localpointer_8h.html#a3030f841466c4bbbd465ac9c4b999549" title=""Smart pointer" definition macro, deletes objects via the closeFunction.">U_DEFINE_LOCAL_OPEN_POINTER</a>(<a class="code" href="classLocalUStringSearchPointer.html" title=""Smart pointer" class, closes a UStringSearch via usearch_close().">LocalUStringSearchPointer</a>, <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a>, <a class="code" href="usearch_8h.html#a618a3f90394cecd1f76aaee4cc1b4c9d" title="Destroying and cleaning up the search iterator data struct.">usearch_close</a>);</div> <div class="line"><a name="l00310"></a><span class="lineno"> 310</span> </div> <div class="line"><a name="l00311"></a><span class="lineno"> 311</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="l00312"></a><span class="lineno"> 312</span> </div> <div class="line"><a name="l00313"></a><span class="lineno"> 313</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00314"></a><span class="lineno"> 314</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00315"></a><span class="lineno"> 315</span> <span class="comment">/* get and set methods -------------------------------------------------- */</span></div> <div class="line"><a name="l00316"></a><span class="lineno"> 316</span> </div> <div class="line"><a name="l00332"></a><span class="lineno"> 332</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> U_EXPORT2 <a class="code" href="usearch_8h.html#a1291f11a16b4b1090eb7029e4c51c70a" title="Sets the current position in the text string which the next search will start from.">usearch_setOffset</a>(<a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch, </div> <div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  int32_t position,</div> <div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00335"></a><span class="lineno"> 335</span> </div> <div class="line"><a name="l00344"></a><span class="lineno"> 344</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int32_t U_EXPORT2 <a class="code" href="usearch_8h.html#ad5913a0eff26b126630d802195fa4622" title="Return the current index in the string text being searched.">usearch_getOffset</a>(<span class="keyword">const</span> <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch);</div> <div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  </div> <div class="line"><a name="l00357"></a><span class="lineno"> 357</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> U_EXPORT2 <a class="code" href="usearch_8h.html#ac983c4347f0d3d0179d67f0e9ba47bd0" title="Sets the text searching attributes located in the enum USearchAttribute with values from the enum USe...">usearch_setAttribute</a>(<a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch, </div> <div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <a class="code" href="usearch_8h.html#aa382f146f1968a9d1dc182100b23ac03">USearchAttribute</a> attribute,</div> <div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  <a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1">USearchAttributeValue</a> value,</div> <div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00361"></a><span class="lineno"> 361</span> </div> <div class="line"><a name="l00370"></a><span class="lineno"> 370</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <a class="code" href="usearch_8h.html#afbe777746540a229c0a2ff3323e292d1">USearchAttributeValue</a> U_EXPORT2 <a class="code" href="usearch_8h.html#a22948a4f2340979d38e145e13efb7a86" title="Gets the text searching attributes.">usearch_getAttribute</a>(</div> <div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  <span class="keyword">const</span> <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch,</div> <div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <a class="code" href="usearch_8h.html#aa382f146f1968a9d1dc182100b23ac03">USearchAttribute</a> attribute);</div> <div class="line"><a name="l00373"></a><span class="lineno"> 373</span> </div> <div class="line"><a name="l00393"></a><span class="lineno"> 393</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int32_t U_EXPORT2 <a class="code" href="usearch_8h.html#a87337f2e0925028965f9f4ff72463eab" title="Returns the index to the match in the text string that was searched.">usearch_getMatchedStart</a>(</div> <div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <span class="keyword">const</span> <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch);</div> <div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  </div> <div class="line"><a name="l00413"></a><span class="lineno"> 413</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int32_t U_EXPORT2 <a class="code" href="usearch_8h.html#a4a88cb2386508803670df932384ed195" title="Returns the length of text in the string which matches the search pattern.">usearch_getMatchedLength</a>(</div> <div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  <span class="keyword">const</span> <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch);</div> <div class="line"><a name="l00415"></a><span class="lineno"> 415</span> </div> <div class="line"><a name="l00441"></a><span class="lineno"> 441</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int32_t U_EXPORT2 <a class="code" href="usearch_8h.html#a19a7079e52d937fc2ea7fe5e06a2c563" title="Returns the text that was matched by the most recent call to usearch_first, usearch_next, usearch_previous, or usearch_last.">usearch_getMatchedText</a>(<span class="keyword">const</span> <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch, </div> <div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...">UChar</a> *result, </div> <div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  int32_t resultCapacity, </div> <div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00445"></a><span class="lineno"> 445</span> </div> <div class="line"><a name="l00446"></a><span class="lineno"> 446</span> <span class="preprocessor">#if !UCONFIG_NO_BREAK_ITERATION</span></div> <div class="line"><a name="l00447"></a><span class="lineno"> 447</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00463"></a><span class="lineno"> 463</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> U_EXPORT2 <a class="code" href="usearch_8h.html#a86d42a1e90bb714a38a314d5bb77cda5" title="Set the BreakIterator that will be used to restrict the points at which matches are detected...">usearch_setBreakIterator</a>(<a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch, </div> <div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  <a class="code" href="ubrk_8h.html#adb85bb46d5f93c87098e11deab50bef4" title="Opaque type representing an ICU Break iterator object.">UBreakIterator</a> *breakiter,</div> <div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00466"></a><span class="lineno"> 466</span> </div> <div class="line"><a name="l00478"></a><span class="lineno"> 478</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keyword">const</span> <a class="code" href="ubrk_8h.html#adb85bb46d5f93c87098e11deab50bef4" title="Opaque type representing an ICU Break iterator object.">UBreakIterator</a> * U_EXPORT2 <a class="code" href="usearch_8h.html#a1386c96d1215f380a0678bf368efbbba" title="Returns the BreakIterator that is used to restrict the points at which matches are detected...">usearch_getBreakIterator</a>(</div> <div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  <span class="keyword">const</span> <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch);</div> <div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  </div> <div class="line"><a name="l00481"></a><span class="lineno"> 481</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00482"></a><span class="lineno"> 482</span> <span class="preprocessor"></span> </div> <div class="line"><a name="l00496"></a><span class="lineno"> 496</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> U_EXPORT2 <a class="code" href="usearch_8h.html#a09c1c5d4ea8b69ce32993dff6426a386" title="Set the string text to be searched.">usearch_setText</a>( <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch, </div> <div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...">UChar</a> *text,</div> <div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  int32_t textlength,</div> <div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00500"></a><span class="lineno"> 500</span> </div> <div class="line"><a name="l00509"></a><span class="lineno"> 509</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...">UChar</a> * U_EXPORT2 <a class="code" href="usearch_8h.html#a4c0acb3936f46b566e39874e6f063f1b" title="Return the string text to be searched.">usearch_getText</a>(<span class="keyword">const</span> <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch, </div> <div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  int32_t *length);</div> <div class="line"><a name="l00511"></a><span class="lineno"> 511</span> </div> <div class="line"><a name="l00522"></a><span class="lineno"> 522</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <a class="code" href="ucol_8h.html#a3c4eeb412a5fd72762e6245aa75ca081" title="structure representing a collator object instance">UCollator</a> * U_EXPORT2 <a class="code" href="usearch_8h.html#ac6c5c26c83f1797d7d60befad91ca2d3" title="Gets the collator used for the language rules.">usearch_getCollator</a>(</div> <div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  <span class="keyword">const</span> <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch);</div> <div class="line"><a name="l00524"></a><span class="lineno"> 524</span> </div> <div class="line"><a name="l00535"></a><span class="lineno"> 535</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> U_EXPORT2 <a class="code" href="usearch_8h.html#ac54be8b9a44d22ec6ea5d53f3cc5d7c5" title="Sets the collator used for the language rules.">usearch_setCollator</a>( <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch, </div> <div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  <span class="keyword">const</span> <a class="code" href="ucol_8h.html#a3c4eeb412a5fd72762e6245aa75ca081" title="structure representing a collator object instance">UCollator</a> *collator,</div> <div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00538"></a><span class="lineno"> 538</span> </div> <div class="line"><a name="l00551"></a><span class="lineno"> 551</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> U_EXPORT2 <a class="code" href="usearch_8h.html#aa2d53cd40c636eb0da13b891e4a84dbb" title="Sets the pattern used for matching.">usearch_setPattern</a>( <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch, </div> <div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...">UChar</a> *pattern,</div> <div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  int32_t patternlength,</div> <div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00555"></a><span class="lineno"> 555</span> </div> <div class="line"><a name="l00564"></a><span class="lineno"> 564</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...">UChar</a> * U_EXPORT2 <a class="code" href="usearch_8h.html#a1ffeb4ed9b997387051c1705b2b32858" title="Gets the search pattern.">usearch_getPattern</a>(</div> <div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  <span class="keyword">const</span> <a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch, </div> <div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  int32_t *length);</div> <div class="line"><a name="l00567"></a><span class="lineno"> 567</span> </div> <div class="line"><a name="l00568"></a><span class="lineno"> 568</span> <span class="comment">/* methods ------------------------------------------------------------- */</span></div> <div class="line"><a name="l00569"></a><span class="lineno"> 569</span> </div> <div class="line"><a name="l00585"></a><span class="lineno"> 585</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int32_t U_EXPORT2 <a class="code" href="usearch_8h.html#ad59a7f4746faf28c98fee8473e0353d4" title="Returns the first index at which the string text matches the search pattern.">usearch_first</a>(<a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch, </div> <div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00587"></a><span class="lineno"> 587</span> </div> <div class="line"><a name="l00609"></a><span class="lineno"> 609</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int32_t U_EXPORT2 <a class="code" href="usearch_8h.html#a32c4c29b24f1f2ce0a3dc4e90c1a0b30" title="Returns the first index equal or greater than position at which the string text matches the search pa...">usearch_following</a>(<a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch, </div> <div class="line"><a name="l00610"></a><span class="lineno"> 610</span>  int32_t position, </div> <div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  </div> <div class="line"><a name="l00628"></a><span class="lineno"> 628</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int32_t U_EXPORT2 <a class="code" href="usearch_8h.html#aad61fadd096cd28a454f68fa117a24cb" title="Returns the last index in the target text at which it matches the search pattern.">usearch_last</a>(<a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch, </div> <div class="line"><a name="l00629"></a><span class="lineno"> 629</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00630"></a><span class="lineno"> 630</span> </div> <div class="line"><a name="l00656"></a><span class="lineno"> 656</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int32_t U_EXPORT2 <a class="code" href="usearch_8h.html#ac3cd326f313fdc57bfe46f906a33f6f1" title="Returns the first index less than position at which the string text matches the search pattern...">usearch_preceding</a>(<a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch, </div> <div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  int32_t position, </div> <div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00659"></a><span class="lineno"> 659</span>  </div> <div class="line"><a name="l00677"></a><span class="lineno"> 677</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int32_t U_EXPORT2 <a class="code" href="usearch_8h.html#a51f8b08f582cb956d950cdd5098e93cf" title="Returns the index of the next point at which the string text matches the search pattern, starting from the current position.">usearch_next</a>(<a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch, </div> <div class="line"><a name="l00678"></a><span class="lineno"> 678</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00679"></a><span class="lineno"> 679</span> </div> <div class="line"><a name="l00697"></a><span class="lineno"> 697</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int32_t U_EXPORT2 <a class="code" href="usearch_8h.html#a6be0c1c2f412c0ae13cb9c7c1796d7a4" title="Returns the index of the previous point at which the string text matches the search pattern...">usearch_previous</a>(<a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch, </div> <div class="line"><a name="l00698"></a><span class="lineno"> 698</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00699"></a><span class="lineno"> 699</span>  </div> <div class="line"><a name="l00710"></a><span class="lineno"> 710</span> <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> U_EXPORT2 <a class="code" href="usearch_8h.html#a52484e482e408ddc091cc43b0d1decd9" title="Reset the iteration.">usearch_reset</a>(<a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch);</div> <div class="line"><a name="l00711"></a><span class="lineno"> 711</span> </div> <div class="line"><a name="l00712"></a><span class="lineno"> 712</span> <span class="preprocessor">#ifndef U_HIDE_INTERNAL_API</span></div> <div class="line"><a name="l00713"></a><span class="lineno"> 713</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00767"></a><span class="lineno"> 767</span> <a class="code" href="umachine_8h.html#a161dba69f4e479c3626793efc42f94ba" title="This is used to declare a function as an internal ICU C API.">U_INTERNAL</a> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> U_EXPORT2 <a class="code" href="usearch_8h.html#a429ec33f40f29f25d41ce8a1f7513465" title="Simple forward search for the pattern, starting at a specified index, and using using a default set s...">usearch_search</a>(<a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch,</div> <div class="line"><a name="l00768"></a><span class="lineno"> 768</span>  int32_t startIdx,</div> <div class="line"><a name="l00769"></a><span class="lineno"> 769</span>  int32_t *matchStart,</div> <div class="line"><a name="l00770"></a><span class="lineno"> 770</span>  int32_t *matchLimit,</div> <div class="line"><a name="l00771"></a><span class="lineno"> 771</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00772"></a><span class="lineno"> 772</span> </div> <div class="line"><a name="l00827"></a><span class="lineno"> 827</span> <a class="code" href="umachine_8h.html#a161dba69f4e479c3626793efc42f94ba" title="This is used to declare a function as an internal ICU C API.">U_INTERNAL</a> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> U_EXPORT2 <a class="code" href="usearch_8h.html#aafad5d71a67ca39ba1886fbae3659a5b" title="Simple backwards search for the pattern, starting at a specified index, and using using a default set...">usearch_searchBackwards</a>(<a class="code" href="usearch_8h.html#ab244c09051ecef7e477be6f3e247796d" title="Data structure for searching.">UStringSearch</a> *strsrch,</div> <div class="line"><a name="l00828"></a><span class="lineno"> 828</span>  int32_t startIdx,</div> <div class="line"><a name="l00829"></a><span class="lineno"> 829</span>  int32_t *matchStart,</div> <div class="line"><a name="l00830"></a><span class="lineno"> 830</span>  int32_t *matchLimit,</div> <div class="line"><a name="l00831"></a><span class="lineno"> 831</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00832"></a><span class="lineno"> 832</span> <span class="preprocessor">#endif </span><span class="comment">/* U_HIDE_INTERNAL_API */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00833"></a><span class="lineno"> 833</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00834"></a><span class="lineno"> 834</span> <span class="preprocessor">#endif </span><span class="comment">/* #if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00835"></a><span class="lineno"> 835</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00836"></a><span class="lineno"> 836</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: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>