<!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"/> <meta name="generator" content="Doxygen 1.8.3.1"/> <title>ICU 49.1.1: bms.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 49.1.1  <span id="projectnumber">49.1.1</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.3.1 --> <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="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">bms.h</div> </div> </div><!--header--> <div class="contents"> <a href="bms_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) 1996-2011, International Business Machines Corporation and Others.</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * 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> </div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#ifndef _BMS_H</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor"></span><span class="preprocessor">#define _BMS_H</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</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="l00016"></a><span class="lineno"> 16</span> </div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</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="l00020"></a><span class="lineno"> 20</span> </div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifndef U_HIDE_INTERNAL_API</span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00039"></a><span class="lineno"><a class="code" href="bms_8h.html#a14f9e43aeb102d7d728d4e14bf4bc49b"> 39</a></span> <span class="keyword">typedef</span> <span class="keywordtype">void</span> <a class="code" href="bms_8h.html#a14f9e43aeb102d7d728d4e14bf4bc49b" title="A UCD object holds the Collator-specific data needed to compute the length of the shortest string tha...">UCD</a>;</div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div> <div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <a class="code" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df" title="This is used to declare a function as a public ICU C API.">U_CAPI</a> <a class="code" href="bms_8h.html#a14f9e43aeb102d7d728d4e14bf4bc49b" title="A UCD object holds the Collator-specific data needed to compute the length of the shortest string tha...">UCD</a> * U_EXPORT2</div> <div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <a class="code" href="bms_8h.html#a35c00e7aacd736c42c722d32d79ade80" title="Open a UCD object.">ucd_open</a>(<a class="code" href="ucol_8h.html#a3c4eeb412a5fd72762e6245aa75ca081" title="structure representing a collator object instance">UCollator</a> *coll, <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="l00057"></a><span class="lineno"> 57</span> </div> <div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <a class="code" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df" title="This is used to declare a function as a public ICU C API.">U_CAPI</a> <span class="keywordtype">void</span> U_EXPORT2</div> <div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <a class="code" href="bms_8h.html#ac3f6886c656edb2f20b766058c34531c" title="Release a UCD object.">ucd_close</a>(<a class="code" href="bms_8h.html#a14f9e43aeb102d7d728d4e14bf4bc49b" title="A UCD object holds the Collator-specific data needed to compute the length of the shortest string tha...">UCD</a> *ucd);</div> <div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div> <div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <a class="code" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df" title="This is used to declare a function as a public ICU C API.">U_CAPI</a> <a class="code" href="ucol_8h.html#a3c4eeb412a5fd72762e6245aa75ca081" title="structure representing a collator object instance">UCollator</a> * U_EXPORT2</div> <div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <a class="code" href="bms_8h.html#aa27cdc9cb357b05770273f09df5f0555" title="Get the UCollator object used to create a UCD object.">ucd_getCollator</a>(<a class="code" href="bms_8h.html#a14f9e43aeb102d7d728d4e14bf4bc49b" title="A UCD object holds the Collator-specific data needed to compute the length of the shortest string tha...">UCD</a> *ucd);</div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div> <div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <a class="code" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df" title="This is used to declare a function as a public ICU C API.">U_CAPI</a> <span class="keywordtype">void</span> U_EXPORT2</div> <div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <a class="code" href="bms_8h.html#adc8b9769d98b198c09b586056fe286e6" title="UCD objects are expensive to compute, and so may be cached.">ucd_freeCache</a>();</div> <div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div> <div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <a class="code" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df" title="This is used to declare a function as a public ICU C API.">U_CAPI</a> <span class="keywordtype">void</span> U_EXPORT2</div> <div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <a class="code" href="bms_8h.html#ae2e5d015ba1fe45a3b62314016ff8a28" title="UCD objects are expensive to compute, and so may be cached.">ucd_flushCache</a>();</div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div> <div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="keyword">struct </span><a class="code" href="bms_8h.html#a1590a1f5f8051f0996dfddd4131d307f">BMS</a>;</div> <div class="line"><a name="l00187"></a><span class="lineno"><a class="code" href="bms_8h.html#a1590a1f5f8051f0996dfddd4131d307f"> 187</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="bms_8h.html#a1590a1f5f8051f0996dfddd4131d307f">BMS</a> <a class="code" href="bms_8h.html#a1590a1f5f8051f0996dfddd4131d307f">BMS</a>; </div> <div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <a class="code" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df" title="This is used to declare a function as a public ICU C API.">U_CAPI</a> <a class="code" href="bms_8h.html#a1590a1f5f8051f0996dfddd4131d307f">BMS</a> * U_EXPORT2</div> <div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <a class="code" href="bms_8h.html#ab8223f8dba9dd98fba364c96d0ac0df4" title="Construct a MBS object.">bms_open</a>(<a class="code" href="bms_8h.html#a14f9e43aeb102d7d728d4e14bf4bc49b" title="A UCD object holds the Collator-specific data needed to compute the length of the shortest string tha...">UCD</a> *ucd,</div> <div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be char16_t, if available, or wchar_t if that is 16 bits wide; always assumed to be u...">UChar</a> *pattern, int32_t patternLength,</div> <div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be char16_t, if available, or wchar_t if that is 16 bits wide; always assumed to be u...">UChar</a> *target, int32_t targetLength,</div> <div class="line"><a name="l00211"></a><span class="lineno"> 211</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="l00212"></a><span class="lineno"> 212</span> </div> <div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <a class="code" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df" title="This is used to declare a function as a public ICU C API.">U_CAPI</a> <span class="keywordtype">void</span> U_EXPORT2</div> <div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <a class="code" href="bms_8h.html#a16322812145a772ce956199ff07bbd1d" title="Close a BMS object and release all the storage associated with it.">bms_close</a>(<a class="code" href="bms_8h.html#a1590a1f5f8051f0996dfddd4131d307f">BMS</a> *bms);</div> <div class="line"><a name="l00222"></a><span class="lineno"> 222</span> </div> <div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <a class="code" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df" title="This is used to declare a function as a public ICU C API.">U_CAPI</a> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> U_EXPORT2</div> <div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <a class="code" href="bms_8h.html#a8f3065ec3172eaf7d6612211ea728ef1" title="Test the pattern to see if it generates any CEs.">bms_empty</a>(<a class="code" href="bms_8h.html#a1590a1f5f8051f0996dfddd4131d307f">BMS</a> *bms);</div> <div class="line"><a name="l00233"></a><span class="lineno"> 233</span> </div> <div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <a class="code" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df" title="This is used to declare a function as a public ICU C API.">U_CAPI</a> <a class="code" href="bms_8h.html#a14f9e43aeb102d7d728d4e14bf4bc49b" title="A UCD object holds the Collator-specific data needed to compute the length of the shortest string tha...">UCD</a> * U_EXPORT2</div> <div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <a class="code" href="bms_8h.html#a3a558073174b435209fdf3c312c9d619" title="Get the UCD object used to create a given BMS object.">bms_getData</a>(<a class="code" href="bms_8h.html#a1590a1f5f8051f0996dfddd4131d307f">BMS</a> *bms);</div> <div class="line"><a name="l00247"></a><span class="lineno"> 247</span> </div> <div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <a class="code" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df" title="This is used to declare a function as a public ICU C API.">U_CAPI</a> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> U_EXPORT2</div> <div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <a class="code" href="bms_8h.html#afd1f73840d3ac44ab10b066e1aeec02f" title="Search for the pattern string in the target string.">bms_search</a>(<a class="code" href="bms_8h.html#a1590a1f5f8051f0996dfddd4131d307f">BMS</a> *bms, int32_t offset, int32_t *start, int32_t *end);</div> <div class="line"><a name="l00262"></a><span class="lineno"> 262</span> </div> <div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <a class="code" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df" title="This is used to declare a function as a public ICU C API.">U_CAPI</a> <span class="keywordtype">void</span> U_EXPORT2</div> <div class="line"><a name="l00274"></a><span class="lineno"> 274</span> <a class="code" href="bms_8h.html#aa9e626d8e00681389916ec6fea984339" title="Set the target string for the match.">bms_setTargetString</a>(<a class="code" href="bms_8h.html#a1590a1f5f8051f0996dfddd4131d307f">BMS</a> *bms, <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be char16_t, if available, or wchar_t if that is 16 bits wide; always assumed to be u...">UChar</a> *target, int32_t targetLength, <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="l00275"></a><span class="lineno"> 275</span> </div> <div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <span class="preprocessor">#endif </span><span class="comment">/* U_HIDE_INTERNAL_API */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <span class="preprocessor">#endif </span><span class="comment">/* _BMS_H */</span><span class="preprocessor"></span></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.3.1 </small></address> </body> </html>