classboost_1_1locale_1_1boundary_1_1boundary__point__index.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.6"/>
  7. <title>Boost.Locale: boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt; Class Template Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="resize.js"></script>
  13. <script type="text/javascript" src="navtree.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(initResizable);
  16. $(window).load(resizeHeight);
  17. </script>
  18. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  19. </head>
  20. <body>
  21. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  22. <div id="titlearea">
  23. <table cellspacing="0" cellpadding="0">
  24. <tbody>
  25. <tr style="height: 56px;">
  26. <td id="projectlogo"><img alt="Logo" src="boost-small.png"/></td>
  27. <td style="padding-left: 0.5em;">
  28. <div id="projectname">Boost.Locale
  29. </div>
  30. </td>
  31. </tr>
  32. </tbody>
  33. </table>
  34. </div>
  35. <!-- end header part -->
  36. <!-- Generated by Doxygen 1.8.6 -->
  37. <div id="navrow1" class="tabs">
  38. <ul class="tablist">
  39. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  40. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  41. <li><a href="modules.html"><span>Modules</span></a></li>
  42. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  43. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  44. <li><a href="files.html"><span>Files</span></a></li>
  45. <li><a href="examples.html"><span>Examples</span></a></li>
  46. </ul>
  47. </div>
  48. <div id="navrow2" class="tabs2">
  49. <ul class="tablist">
  50. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  51. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  52. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  53. </ul>
  54. </div>
  55. </div><!-- top -->
  56. <div id="side-nav" class="ui-resizable side-nav-resizable">
  57. <div id="nav-tree">
  58. <div id="nav-tree-contents">
  59. <div id="nav-sync" class="sync"></div>
  60. </div>
  61. </div>
  62. <div id="splitbar" style="-moz-user-select:none;"
  63. class="ui-resizable-handle">
  64. </div>
  65. </div>
  66. <script type="text/javascript">
  67. $(document).ready(function(){initNavTree('classboost_1_1locale_1_1boundary_1_1boundary__point__index.html','');});
  68. </script>
  69. <div id="doc-content">
  70. <div class="header">
  71. <div class="summary">
  72. <a href="#pub-types">Public Types</a> &#124;
  73. <a href="#pub-methods">Public Member Functions</a> &#124;
  74. <a href="#friends">Friends</a> &#124;
  75. <a href="classboost_1_1locale_1_1boundary_1_1boundary__point__index-members.html">List of all members</a> </div>
  76. <div class="headertitle">
  77. <div class="title">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__boundary.html">Boundary Analysis</a></div></div> </div>
  78. </div><!--header-->
  79. <div class="contents">
  80. <p>This class holds an index of <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary points</a> and allows iterating over them.
  81. <a href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html#details">More...</a></p>
  82. <p><code>#include &lt;<a class="el" href="index_8hpp_source.html">boost/locale/boundary/index.hpp</a>&gt;</code></p>
  83. <table class="memberdecls">
  84. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  85. Public Types</h2></td></tr>
  86. <tr class="memitem:gab3189e2eaf4386cdf37598e0ba16cfd5"><td class="memItemLeft" align="right" valign="top">typedef BaseIterator&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a></td></tr>
  87. <tr class="separator:gab3189e2eaf4386cdf37598e0ba16cfd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  88. <tr class="memitem:ga1af6e72b3c384edcebc0cf319fe97efe"><td class="memItemLeft" align="right" valign="top">typedef unspecified_iterator_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga1af6e72b3c384edcebc0cf319fe97efe">iterator</a></td></tr>
  89. <tr class="separator:ga1af6e72b3c384edcebc0cf319fe97efe"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:gac9ce9158eb2fb030c1baf93376203d16"><td class="memItemLeft" align="right" valign="top">typedef unspecified_iterator_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gac9ce9158eb2fb030c1baf93376203d16">const_iterator</a></td></tr>
  91. <tr class="separator:gac9ce9158eb2fb030c1baf93376203d16"><td class="memSeparator" colspan="2">&#160;</td></tr>
  92. <tr class="memitem:ga7f7328a860cf485a4bd8f17658c291e1"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a><br class="typebreak"/>
  93. &lt; <a class="el" href="group__boundary.html#gab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga7f7328a860cf485a4bd8f17658c291e1">value_type</a></td></tr>
  94. <tr class="separator:ga7f7328a860cf485a4bd8f17658c291e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. </table><table class="memberdecls">
  96. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  97. Public Member Functions</h2></td></tr>
  98. <tr class="memitem:gaba6993dd50ad8cf2db8921e5cf668a69"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gaba6993dd50ad8cf2db8921e5cf668a69">boundary_point_index</a> ()</td></tr>
  99. <tr class="separator:gaba6993dd50ad8cf2db8921e5cf668a69"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:gacc189288792012cfdb21c07fddbadc4f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gacc189288792012cfdb21c07fddbadc4f">boundary_point_index</a> (<a class="el" href="group__boundary.html#ga15de9963ce9bb6037c8525901dfbf641">boundary_type</a> type, <a class="el" href="group__boundary.html#gab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> <a class="el" href="group__boundary.html#ga56f42a32f0378b6e157671f9e17bd66f">begin</a>, <a class="el" href="group__boundary.html#gab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> <a class="el" href="group__boundary.html#gaf3d66d578e32a63b3f0ffbb59740667b">end</a>, <a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a> mask, std::locale const &amp;loc=std::locale())</td></tr>
  101. <tr class="separator:gacc189288792012cfdb21c07fddbadc4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:ga9b926379fa2fcc7f87dc067953049d69"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga9b926379fa2fcc7f87dc067953049d69">boundary_point_index</a> (<a class="el" href="group__boundary.html#ga15de9963ce9bb6037c8525901dfbf641">boundary_type</a> type, <a class="el" href="group__boundary.html#gab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> <a class="el" href="group__boundary.html#ga56f42a32f0378b6e157671f9e17bd66f">begin</a>, <a class="el" href="group__boundary.html#gab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> <a class="el" href="group__boundary.html#gaf3d66d578e32a63b3f0ffbb59740667b">end</a>, std::locale const &amp;loc=std::locale())</td></tr>
  103. <tr class="separator:ga9b926379fa2fcc7f87dc067953049d69"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:gac48665ff53789c6ee44a423963b6550d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gac48665ff53789c6ee44a423963b6550d">boundary_point_index</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">segment_index</a>&lt; <a class="el" href="group__boundary.html#gab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> &gt; const &amp;other)</td></tr>
  105. <tr class="separator:gac48665ff53789c6ee44a423963b6550d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:ga83d57b993b00686b2cac711667c6a931"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boundary_point_index</a> const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga83d57b993b00686b2cac711667c6a931">operator=</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">segment_index</a>&lt; <a class="el" href="group__boundary.html#gab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> &gt; const &amp;other)</td></tr>
  107. <tr class="separator:ga83d57b993b00686b2cac711667c6a931"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:ga6b4b5d5cf80b55302a88e7b36c812418"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga6b4b5d5cf80b55302a88e7b36c812418">map</a> (<a class="el" href="group__boundary.html#ga15de9963ce9bb6037c8525901dfbf641">boundary_type</a> type, <a class="el" href="group__boundary.html#gab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> <a class="el" href="group__boundary.html#ga56f42a32f0378b6e157671f9e17bd66f">begin</a>, <a class="el" href="group__boundary.html#gab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> <a class="el" href="group__boundary.html#gaf3d66d578e32a63b3f0ffbb59740667b">end</a>, std::locale const &amp;loc=std::locale())</td></tr>
  109. <tr class="separator:ga6b4b5d5cf80b55302a88e7b36c812418"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:ga56f42a32f0378b6e157671f9e17bd66f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__boundary.html#ga1af6e72b3c384edcebc0cf319fe97efe">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga56f42a32f0378b6e157671f9e17bd66f">begin</a> () const </td></tr>
  111. <tr class="separator:ga56f42a32f0378b6e157671f9e17bd66f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:gaf3d66d578e32a63b3f0ffbb59740667b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__boundary.html#ga1af6e72b3c384edcebc0cf319fe97efe">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gaf3d66d578e32a63b3f0ffbb59740667b">end</a> () const </td></tr>
  113. <tr class="separator:gaf3d66d578e32a63b3f0ffbb59740667b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:ga0bb71a287afca990e85b17246568492d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__boundary.html#ga1af6e72b3c384edcebc0cf319fe97efe">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga0bb71a287afca990e85b17246568492d">find</a> (<a class="el" href="group__boundary.html#gab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> p) const </td></tr>
  115. <tr class="separator:ga0bb71a287afca990e85b17246568492d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:ga1d214029f1a780b7bf6e3f23a3004c03"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga1d214029f1a780b7bf6e3f23a3004c03">rule</a> () const </td></tr>
  117. <tr class="separator:ga1d214029f1a780b7bf6e3f23a3004c03"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:ga56e63913f51109e05a24a7136472a975"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga56e63913f51109e05a24a7136472a975">rule</a> (<a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a> v)</td></tr>
  119. <tr class="separator:ga56e63913f51109e05a24a7136472a975"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. </table><table class="memberdecls">
  121. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
  122. Friends</h2></td></tr>
  123. <tr class="memitem:gaa8ba2e18ec3780af8f001ba85e40b9e2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa8ba2e18ec3780af8f001ba85e40b9e2"></a>
  124. class&#160;</td><td class="memItemRight" valign="bottom"><b>segment_index&lt; base_iterator &gt;</b></td></tr>
  125. <tr class="separator:gaa8ba2e18ec3780af8f001ba85e40b9e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. </table>
  127. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  128. <div class="textblock"><h3>template&lt;typename BaseIterator&gt;<br/>
  129. class boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</h3>
  130. <p>This class holds an index of <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary points</a> and allows iterating over them. </p>
  131. <p>This class is provides <a class="el" href="group__boundary.html#ga56f42a32f0378b6e157671f9e17bd66f">begin()</a> and <a class="el" href="group__boundary.html#gaf3d66d578e32a63b3f0ffbb59740667b">end()</a> member functions that return bidirectional iterators to the <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a> objects.</p>
  132. <p>It provides an option that affects selecting boundary points according to different rules: using <a class="el" href="group__boundary.html#ga56e63913f51109e05a24a7136472a975">rule(rule_type mask)</a> member function. It allows to set a mask that select only specific types of boundary points like <a class="el" href="group__boundary.html#ga3befefe67f79691c117bf5588741355b">sentence_term</a>.</p>
  133. <p>For example for a sentence boundary analysis of a text "Hello! How\nare you?" when the default rule is used the boundary points would be:</p>
  134. <ul>
  135. <li>"|Hello! How\nare you?"</li>
  136. <li>"Hello! |How\nare you?"</li>
  137. <li>"Hello! How\n|are you?"</li>
  138. <li>"Hello! How\nare you?|"</li>
  139. </ul>
  140. <p>However if <a class="el" href="group__boundary.html#ga1d214029f1a780b7bf6e3f23a3004c03">rule()</a> is set to <a class="el" href="group__boundary.html#ga3befefe67f79691c117bf5588741355b">sentence_term</a> then the selected boundary points would be:</p>
  141. <ul>
  142. <li>"|Hello! How\nare you?"</li>
  143. <li>"Hello! |How\nare you?"</li>
  144. <li>"Hello! How\nare you?|"</li>
  145. </ul>
  146. <p>Such that a boundary point defined by a line feed character would be ignored.</p>
  147. <p>This class allows to find a <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text. ">boundary_point</a> according to the given iterator in range using <a class="el" href="group__boundary.html#ga0bb71a287afca990e85b17246568492d">find()</a> member function.</p>
  148. <dl class="section note"><dt>Note</dt><dd><ul>
  149. <li>Even an empty text range [x,x) considered to have a one boundary point x.</li>
  150. <li><em>a</em> and <em>b</em> points of the range [a,b) are always considered boundary points regardless the rules used.</li>
  151. <li>Changing any of the option <a class="el" href="group__boundary.html#ga1d214029f1a780b7bf6e3f23a3004c03">rule()</a> or course re-indexing the text invalidates existing iterators and they can't be used any more.</li>
  152. <li><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html" title="This class holds an index of boundary points and allows iterating over them. ">boundary_point_index</a> can be created from <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html" title="This class holds an index of segments in the text range and allows to iterate over them...">segment_index</a> or other <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html" title="This class holds an index of boundary points and allows iterating over them. ">boundary_point_index</a> that was created with same <a class="el" href="group__boundary.html#ga15de9963ce9bb6037c8525901dfbf641">boundary_type</a>. This is very fast operation as they shared same index and it does not require its regeneration.</li>
  153. </ul>
  154. </dd></dl>
  155. <dl class="section see"><dt>See Also</dt><dd></dd></dl>
  156. <ul>
  157. <li><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">segment_index</a></li>
  158. <li><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a></li>
  159. <li><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">segment</a> </li>
  160. </ul>
  161. </div><hr/>The documentation for this class was generated from the following file:<ul>
  162. <li>boost/locale/boundary/<a class="el" href="index_8hpp_source.html">index.hpp</a></li>
  163. </ul>
  164. </div><!-- contents -->
  165. </div><!-- doc-content -->
  166. <li class="footer">
  167. &copy; Copyright 2009-2012 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
  168. </li>
  169. </ul>
  170. </div>
  171. </body>
  172. </html>