2
0
mirror of https://github.com/boostorg/locale.git synced 2026-02-26 16:52:26 +00:00
Files
locale/doc/html/segment_8hpp_source.html
Artyom Beilis eb14e99e18 Lineup with trunk
[SVN r82266]
2012-12-29 14:18:45 +00:00

466 lines
57 KiB
HTML

<!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>Boost.Locale: boost/locale/boundary/segment.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
</head>
<body>
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="boost-small.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Boost.Locale
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.6.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</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>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
</ul>
</div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
initNavTree('segment_8hpp.html','');
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">boost/locale/boundary/segment.hpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// Distributed under the Boost Software License, Version 1.0. (See</span>
<a name="l00005"></a>00005 <span class="comment">// accompanying file LICENSE_1_0.txt or copy at</span>
<a name="l00006"></a>00006 <span class="comment">// http://www.boost.org/LICENSE_1_0.txt)</span>
<a name="l00007"></a>00007 <span class="comment">//</span>
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef BOOST_LOCALE_BOUNDARY_SEGMENT_HPP_INCLUDED</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define BOOST_LOCALE_BOUNDARY_SEGMENT_HPP_INCLUDED</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#include &lt;boost/locale/config.hpp&gt;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#ifdef BOOST_MSVC</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(push)</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(disable : 4275 4251 4231 4660)</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#include &lt;locale&gt;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;iosfwd&gt;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;iterator&gt;</span>
<a name="l00019"></a>00019
<a name="l00020"></a>00020
<a name="l00021"></a>00021 <span class="keyword">namespace </span>boost {
<a name="l00022"></a>00022 <span class="keyword">namespace </span>locale {
<a name="l00023"></a>00023 <span class="keyword">namespace </span>boundary {
<a name="l00025"></a>00025 <span class="keyword">namespace </span>details {
<a name="l00026"></a>00026 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> LeftIterator,<span class="keyword">typename</span> RightIterator&gt;
<a name="l00027"></a>00027 <span class="keywordtype">int</span> compare_text(LeftIterator l_begin,LeftIterator l_end,RightIterator r_begin,RightIterator r_end)
<a name="l00028"></a>00028 {
<a name="l00029"></a>00029 <span class="keyword">typedef</span> LeftIterator left_iterator;
<a name="l00030"></a>00030 <span class="keyword">typedef</span> RightIterator right_iterator;
<a name="l00031"></a>00031 <span class="keyword">typedef</span> <span class="keyword">typename</span> std::iterator_traits&lt;left_iterator&gt;::value_type char_type;
<a name="l00032"></a>00032 <span class="keyword">typedef</span> std::char_traits&lt;char_type&gt; traits;
<a name="l00033"></a>00033 <span class="keywordflow">while</span>(l_begin!=l_end &amp;&amp; r_begin!=r_end) {
<a name="l00034"></a>00034 char_type lchar = *l_begin++;
<a name="l00035"></a>00035 char_type rchar = *r_begin++;
<a name="l00036"></a>00036 <span class="keywordflow">if</span>(traits::eq(lchar,rchar))
<a name="l00037"></a>00037 <span class="keywordflow">continue</span>;
<a name="l00038"></a>00038 <span class="keywordflow">if</span>(traits::lt(lchar,rchar))
<a name="l00039"></a>00039 <span class="keywordflow">return</span> -1;
<a name="l00040"></a>00040 <span class="keywordflow">else</span>
<a name="l00041"></a>00041 <span class="keywordflow">return</span> 1;
<a name="l00042"></a>00042 }
<a name="l00043"></a>00043 <span class="keywordflow">if</span>(l_begin==l_end &amp;&amp; r_begin==r_end)
<a name="l00044"></a>00044 <span class="keywordflow">return</span> 0;
<a name="l00045"></a>00045 <span class="keywordflow">if</span>(l_begin==l_end)
<a name="l00046"></a>00046 <span class="keywordflow">return</span> -1;
<a name="l00047"></a>00047 <span class="keywordflow">else</span>
<a name="l00048"></a>00048 <span class="keywordflow">return</span> 1;
<a name="l00049"></a>00049 }
<a name="l00050"></a>00050
<a name="l00051"></a>00051
<a name="l00052"></a>00052 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Left,<span class="keyword">typename</span> Right&gt;
<a name="l00053"></a>00053 <span class="keywordtype">int</span> compare_text(Left <span class="keyword">const</span> &amp;l,Right <span class="keyword">const</span> &amp;r)
<a name="l00054"></a>00054 {
<a name="l00055"></a>00055 <span class="keywordflow">return</span> compare_text(l.begin(),l.end(),r.begin(),r.end());
<a name="l00056"></a>00056 }
<a name="l00057"></a>00057
<a name="l00058"></a>00058 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Left,<span class="keyword">typename</span> Char&gt;
<a name="l00059"></a>00059 <span class="keywordtype">int</span> compare_string(Left <span class="keyword">const</span> &amp;l,Char <span class="keyword">const</span> *begin)
<a name="l00060"></a>00060 {
<a name="l00061"></a>00061 Char <span class="keyword">const</span> *end = begin;
<a name="l00062"></a>00062 <span class="keywordflow">while</span>(*end!=0)
<a name="l00063"></a>00063 end++;
<a name="l00064"></a>00064 <span class="keywordflow">return</span> compare_text(l.begin(),l.end(),begin,end);
<a name="l00065"></a>00065 }
<a name="l00066"></a>00066
<a name="l00067"></a>00067 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Right,<span class="keyword">typename</span> Char&gt;
<a name="l00068"></a>00068 <span class="keywordtype">int</span> compare_string(Char <span class="keyword">const</span> *begin,Right <span class="keyword">const</span> &amp;r)
<a name="l00069"></a>00069 {
<a name="l00070"></a>00070 Char <span class="keyword">const</span> *end = begin;
<a name="l00071"></a>00071 <span class="keywordflow">while</span>(*end!=0)
<a name="l00072"></a>00072 end++;
<a name="l00073"></a>00073 <span class="keywordflow">return</span> compare_text(begin,end,r.begin(),r.end());
<a name="l00074"></a>00074 }
<a name="l00075"></a>00075
<a name="l00076"></a>00076 }
<a name="l00078"></a>00078
<a name="l00082"></a>00082
<a name="l00102"></a>00102 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> IteratorType&gt;
<a name="l00103"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html">00103</a> <span class="keyword">class </span><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment</a> : <span class="keyword">public</span> std::pair&lt;IteratorType,IteratorType&gt; {
<a name="l00104"></a>00104 <span class="keyword">public</span>:
<a name="l00108"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#ad3785355ea817c087bf428315a332169">00108</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> std::iterator_traits&lt;IteratorType&gt;::value_type <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#ad3785355ea817c087bf428315a332169">char_type</a>;
<a name="l00112"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a795d3328ac4d1692294f172c8480da47">00112</a> <span class="keyword">typedef</span> std::basic_string&lt;char_type&gt; <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a795d3328ac4d1692294f172c8480da47">string_type</a>;
<a name="l00116"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#ab7ba55015262b4fb85bb531882a32ead">00116</a> <span class="keyword">typedef</span> char_type <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#ab7ba55015262b4fb85bb531882a32ead">value_type</a>;
<a name="l00120"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">00120</a> <span class="keyword">typedef</span> IteratorType <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a>;
<a name="l00124"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#aa24dcd83aefe4925bfc11b0285e2517a">00124</a> <span class="keyword">typedef</span> IteratorType <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#aa24dcd83aefe4925bfc11b0285e2517a">const_iterator</a>;
<a name="l00128"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a79ee4d48248ffbc23f84a33355ca3b62">00128</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> std::iterator_traits&lt;IteratorType&gt;::difference_type <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a79ee4d48248ffbc23f84a33355ca3b62">difference_type</a>;
<a name="l00129"></a>00129
<a name="l00133"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a4e785bc97dba9e8e25f18b43957723e5">00133</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a4e785bc97dba9e8e25f18b43957723e5">segment</a>() {}
<a name="l00137"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#aea72505bb4940b21bb00a3660fefb7b7">00137</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a4e785bc97dba9e8e25f18b43957723e5">segment</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a> b,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a> e,<a class="code" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095" title="Flags used with word boundary analysis -- the type of the word, line or sentence boundary found...">rule_type</a> r) :
<a name="l00138"></a>00138 std::pair&lt;IteratorType,IteratorType&gt;(b,e),
<a name="l00139"></a>00139 rule_(r)
<a name="l00140"></a>00140 {
<a name="l00141"></a>00141 }
<a name="l00145"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a5428ff79bc05b78989f56519b58a6d9c">00145</a> <span class="keywordtype">void</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a445da30d993880a1bd6d998e78755a44">begin</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a> <span class="keyword">const</span> &amp;v)
<a name="l00146"></a>00146 {
<a name="l00147"></a>00147 this-&gt;first = v;
<a name="l00148"></a>00148 }
<a name="l00152"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#aaedd7bb4760bae3dcdb165b330806261">00152</a> <span class="keywordtype">void</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a7e36b7f1c88ad1f5756ba6e501454bc4">end</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a> <span class="keyword">const</span> &amp;v)
<a name="l00153"></a>00153 {
<a name="l00154"></a>00154 this-&gt;second = v;
<a name="l00155"></a>00155 }
<a name="l00156"></a>00156
<a name="l00160"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a445da30d993880a1bd6d998e78755a44">00160</a> IteratorType <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a445da30d993880a1bd6d998e78755a44">begin</a>()<span class="keyword"> const </span>
<a name="l00161"></a>00161 <span class="keyword"> </span>{
<a name="l00162"></a>00162 <span class="keywordflow">return</span> this-&gt;first;
<a name="l00163"></a>00163 }
<a name="l00167"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a7e36b7f1c88ad1f5756ba6e501454bc4">00167</a> IteratorType <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a7e36b7f1c88ad1f5756ba6e501454bc4">end</a>()<span class="keyword"> const</span>
<a name="l00168"></a>00168 <span class="keyword"> </span>{
<a name="l00169"></a>00169 <span class="keywordflow">return</span> this-&gt;second;
<a name="l00170"></a>00170 }
<a name="l00171"></a>00171
<a name="l00175"></a>00175 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T, <span class="keyword">class</span> A&gt;
<a name="l00176"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a5230094b346bd26dc83529b47ca97153">00176</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a5230094b346bd26dc83529b47ca97153">operator std::basic_string&lt;char_type, T, A&gt; </a>()<span class="keyword">const</span>
<a name="l00177"></a>00177 <span class="keyword"> </span>{
<a name="l00178"></a>00178 <span class="keywordflow">return</span> std::basic_string&lt;char_type, T, A&gt;(this-&gt;first, this-&gt;second);
<a name="l00179"></a>00179 }
<a name="l00180"></a>00180
<a name="l00184"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#ac139eae8c07ed82ba8343fedfa76c2bf">00184</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a795d3328ac4d1692294f172c8480da47">string_type</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#ac139eae8c07ed82ba8343fedfa76c2bf">str</a>()<span class="keyword"> const</span>
<a name="l00185"></a>00185 <span class="keyword"> </span>{
<a name="l00186"></a>00186 <span class="keywordflow">return</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a795d3328ac4d1692294f172c8480da47">string_type</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a445da30d993880a1bd6d998e78755a44">begin</a>(),<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a7e36b7f1c88ad1f5756ba6e501454bc4">end</a>());
<a name="l00187"></a>00187 }
<a name="l00188"></a>00188
<a name="l00192"></a>00192
<a name="l00193"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a45edfde079b2afe36c55043c7a00b438">00193</a> <span class="keywordtype">size_t</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a45edfde079b2afe36c55043c7a00b438">length</a>()<span class="keyword"> const</span>
<a name="l00194"></a>00194 <span class="keyword"> </span>{
<a name="l00195"></a>00195 <span class="keywordflow">return</span> std::distance(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a445da30d993880a1bd6d998e78755a44">begin</a>(),<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a7e36b7f1c88ad1f5756ba6e501454bc4">end</a>());
<a name="l00196"></a>00196 }
<a name="l00197"></a>00197
<a name="l00201"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a84022afa120893d0716fc446816eb83f">00201</a> <span class="keywordtype">bool</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a84022afa120893d0716fc446816eb83f">empty</a>()<span class="keyword"> const</span>
<a name="l00202"></a>00202 <span class="keyword"> </span>{
<a name="l00203"></a>00203 <span class="keywordflow">return</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a445da30d993880a1bd6d998e78755a44">begin</a>() == <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a7e36b7f1c88ad1f5756ba6e501454bc4">end</a>();
<a name="l00204"></a>00204 }
<a name="l00205"></a>00205
<a name="l00209"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a5b36a522d7013306617dbcccc9919343">00209</a> <a class="code" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095" title="Flags used with word boundary analysis -- the type of the word, line or sentence boundary found...">rule_type</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a5b36a522d7013306617dbcccc9919343">rule</a>()<span class="keyword"> const</span>
<a name="l00210"></a>00210 <span class="keyword"> </span>{
<a name="l00211"></a>00211 <span class="keywordflow">return</span> rule_;
<a name="l00212"></a>00212 }
<a name="l00216"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a962c26b7e2024767ad25f2be080fd53a">00216</a> <span class="keywordtype">void</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a5b36a522d7013306617dbcccc9919343">rule</a>(<a class="code" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095" title="Flags used with word boundary analysis -- the type of the word, line or sentence boundary found...">rule_type</a> r)
<a name="l00217"></a>00217 {
<a name="l00218"></a>00218 rule_ = r;
<a name="l00219"></a>00219 }
<a name="l00220"></a>00220
<a name="l00221"></a>00221 <span class="comment">// make sure we override std::pair&#39;s operator==</span>
<a name="l00222"></a>00222
<a name="l00224"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a9a30e70d41591b25c8c77961bff00057">00224</a> <span class="keywordtype">bool</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a9a30e70d41591b25c8c77961bff00057" title="Compare two segments.">operator==</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment</a> <span class="keyword">const</span> &amp;other)
<a name="l00225"></a>00225 {
<a name="l00226"></a>00226 <span class="keywordflow">return</span> details::compare_text(*<span class="keyword">this</span>,other) == 0;
<a name="l00227"></a>00227 }
<a name="l00228"></a>00228
<a name="l00230"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a2e38c575af16843a3aa140a4332646a3">00230</a> <span class="keywordtype">bool</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a2e38c575af16843a3aa140a4332646a3" title="Compare two segments.">operator!=</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment</a> <span class="keyword">const</span> &amp;other)
<a name="l00231"></a>00231 {
<a name="l00232"></a>00232 <span class="keywordflow">return</span> details::compare_text(*<span class="keyword">this</span>,other) != 0;
<a name="l00233"></a>00233 }
<a name="l00234"></a>00234
<a name="l00235"></a>00235 <span class="keyword">private</span>:
<a name="l00236"></a>00236 <a class="code" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095" title="Flags used with word boundary analysis -- the type of the word, line or sentence boundary found...">rule_type</a> rule_;
<a name="l00237"></a>00237
<a name="l00238"></a>00238 };
<a name="l00239"></a>00239
<a name="l00240"></a>00240
<a name="l00242"></a>00242 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> IteratorL,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00243"></a><a class="code" href="group__boundary.html#ga5e70e909a5fb4d2cf87b485894c9b4db">00243</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga47bc5ece5c461aa4c538354a9e80a707">operator==</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorL&gt;</a> <span class="keyword">const</span> &amp;l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00244"></a>00244 {
<a name="l00245"></a>00245 <span class="keywordflow">return</span> details::compare_text(l,r) == 0;
<a name="l00246"></a>00246 }
<a name="l00248"></a>00248 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> IteratorL,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00249"></a><a class="code" href="group__boundary.html#gae4458cb23aa62b0f94396d3300e838f9">00249</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#gab92086846a31a6826c00a3df90027f0f">operator!=</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorL&gt;</a> <span class="keyword">const</span> &amp;l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00250"></a>00250 {
<a name="l00251"></a>00251 <span class="keywordflow">return</span> details::compare_text(l,r) != 0;
<a name="l00252"></a>00252 }
<a name="l00253"></a>00253
<a name="l00255"></a>00255 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> IteratorL,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00256"></a><a class="code" href="group__boundary.html#ga01671fcf3519166189dff3664f68c870">00256</a> <span class="keywordtype">bool</span> operator&lt;(segment&lt;IteratorL&gt; <span class="keyword">const</span> &amp;l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00257"></a>00257 {
<a name="l00258"></a>00258 <span class="keywordflow">return</span> details::compare_text(l,r) &lt; 0;
<a name="l00259"></a>00259 }
<a name="l00261"></a>00261 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> IteratorL,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00262"></a><a class="code" href="group__boundary.html#gaef3ac4dbd5172a67ec68e27fe6a7a008">00262</a> <span class="keywordtype">bool</span> operator&lt;=(segment&lt;IteratorL&gt; <span class="keyword">const</span> &amp;l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00263"></a>00263 {
<a name="l00264"></a>00264 <span class="keywordflow">return</span> details::compare_text(l,r) &lt;= 0;
<a name="l00265"></a>00265 }
<a name="l00267"></a>00267 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> IteratorL,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00268"></a><a class="code" href="group__boundary.html#ga458e3170d3967ae25c4a40a3970701ba">00268</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga458e3170d3967ae25c4a40a3970701ba" title="Compare two segments.">operator&gt;</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorL&gt;</a> <span class="keyword">const</span> &amp;l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00269"></a>00269 {
<a name="l00270"></a>00270 <span class="keywordflow">return</span> details::compare_text(l,r) &gt; 0;
<a name="l00271"></a>00271 }
<a name="l00273"></a>00273 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> IteratorL,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00274"></a><a class="code" href="group__boundary.html#ga4d9854493e000ea610108d4689d2f6f1">00274</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga4d9854493e000ea610108d4689d2f6f1" title="Compare two segments.">operator&gt;=</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorL&gt;</a> <span class="keyword">const</span> &amp;l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00275"></a>00275 {
<a name="l00276"></a>00276 <span class="keywordflow">return</span> details::compare_text(l,r) &gt;= 0;
<a name="l00277"></a>00277 }
<a name="l00278"></a>00278
<a name="l00280"></a>00280 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00281"></a><a class="code" href="group__boundary.html#ga22e4d38b1dd21bd663847fdbc09fca46">00281</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga47bc5ece5c461aa4c538354a9e80a707">operator==</a>(std::basic_string&lt;CharType,Traits,Alloc&gt; <span class="keyword">const</span> &amp;l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00282"></a>00282 {
<a name="l00283"></a>00283 <span class="keywordflow">return</span> details::compare_text(l,r) == 0;
<a name="l00284"></a>00284 }
<a name="l00286"></a>00286 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00287"></a><a class="code" href="group__boundary.html#gabb7b2978a45e993d6aa9922cbc381e8b">00287</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#gab92086846a31a6826c00a3df90027f0f">operator!=</a>(std::basic_string&lt;CharType,Traits,Alloc&gt; <span class="keyword">const</span> &amp;l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00288"></a>00288 {
<a name="l00289"></a>00289 <span class="keywordflow">return</span> details::compare_text(l,r) != 0;
<a name="l00290"></a>00290 }
<a name="l00291"></a>00291
<a name="l00293"></a>00293 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00294"></a><a class="code" href="group__boundary.html#gac57b915b6feed86f731424c5a5ed531c">00294</a> <span class="keywordtype">bool</span> operator&lt;(std::basic_string&lt;CharType,Traits,Alloc&gt; <span class="keyword">const</span> &amp;l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00295"></a>00295 {
<a name="l00296"></a>00296 <span class="keywordflow">return</span> details::compare_text(l,r) &lt; 0;
<a name="l00297"></a>00297 }
<a name="l00299"></a>00299 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00300"></a><a class="code" href="group__boundary.html#gaec0814b0634157834f1ecd949ea4f935">00300</a> <span class="keywordtype">bool</span> operator&lt;=(std::basic_string&lt;CharType,Traits,Alloc&gt; <span class="keyword">const</span> &amp;l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00301"></a>00301 {
<a name="l00302"></a>00302 <span class="keywordflow">return</span> details::compare_text(l,r) &lt;= 0;
<a name="l00303"></a>00303 }
<a name="l00305"></a>00305 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00306"></a><a class="code" href="group__boundary.html#gad19346448d1464f02f706a3d90932837">00306</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga458e3170d3967ae25c4a40a3970701ba" title="Compare two segments.">operator&gt;</a>(std::basic_string&lt;CharType,Traits,Alloc&gt; <span class="keyword">const</span> &amp;l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00307"></a>00307 {
<a name="l00308"></a>00308 <span class="keywordflow">return</span> details::compare_text(l,r) &gt; 0;
<a name="l00309"></a>00309 }
<a name="l00311"></a>00311 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00312"></a><a class="code" href="group__boundary.html#ga48fc6bd37670c164d9fcdf918d20ab9f">00312</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga4d9854493e000ea610108d4689d2f6f1" title="Compare two segments.">operator&gt;=</a>(std::basic_string&lt;CharType,Traits,Alloc&gt; <span class="keyword">const</span> &amp;l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00313"></a>00313 {
<a name="l00314"></a>00314 <span class="keywordflow">return</span> details::compare_text(l,r) &gt;= 0;
<a name="l00315"></a>00315 }
<a name="l00316"></a>00316
<a name="l00318"></a>00318 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc&gt;
<a name="l00319"></a><a class="code" href="group__boundary.html#ga1e22ac8a99d4e743942c5d6e94270e27">00319</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga47bc5ece5c461aa4c538354a9e80a707">operator==</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;Iterator&gt;</a> <span class="keyword">const</span> &amp;l,std::basic_string&lt;CharType,Traits,Alloc&gt; <span class="keyword">const</span> &amp;r)
<a name="l00320"></a>00320 {
<a name="l00321"></a>00321 <span class="keywordflow">return</span> details::compare_text(l,r) == 0;
<a name="l00322"></a>00322 }
<a name="l00324"></a>00324 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc&gt;
<a name="l00325"></a><a class="code" href="group__boundary.html#gab36f95a4500a4c2a31b2ece4a0ae9cd1">00325</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#gab92086846a31a6826c00a3df90027f0f">operator!=</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;Iterator&gt;</a> <span class="keyword">const</span> &amp;l,std::basic_string&lt;CharType,Traits,Alloc&gt; <span class="keyword">const</span> &amp;r)
<a name="l00326"></a>00326 {
<a name="l00327"></a>00327 <span class="keywordflow">return</span> details::compare_text(l,r) != 0;
<a name="l00328"></a>00328 }
<a name="l00329"></a>00329
<a name="l00331"></a>00331 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc&gt;
<a name="l00332"></a><a class="code" href="group__boundary.html#gabf992487402ed47358bf790a6372059d">00332</a> <span class="keywordtype">bool</span> operator&lt;(segment&lt;Iterator&gt; <span class="keyword">const</span> &amp;l,std::basic_string&lt;CharType,Traits,Alloc&gt; <span class="keyword">const</span> &amp;r)
<a name="l00333"></a>00333 {
<a name="l00334"></a>00334 <span class="keywordflow">return</span> details::compare_text(l,r) &lt; 0;
<a name="l00335"></a>00335 }
<a name="l00337"></a>00337 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc&gt;
<a name="l00338"></a><a class="code" href="group__boundary.html#gab800ff341ec09a99c803dd5fd56e5a81">00338</a> <span class="keywordtype">bool</span> operator&lt;=(segment&lt;Iterator&gt; <span class="keyword">const</span> &amp;l,std::basic_string&lt;CharType,Traits,Alloc&gt; <span class="keyword">const</span> &amp;r)
<a name="l00339"></a>00339 {
<a name="l00340"></a>00340 <span class="keywordflow">return</span> details::compare_text(l,r) &lt;= 0;
<a name="l00341"></a>00341 }
<a name="l00343"></a>00343 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc&gt;
<a name="l00344"></a><a class="code" href="group__boundary.html#gaf32c4f420aae266e1d6d4b37e716cc30">00344</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga458e3170d3967ae25c4a40a3970701ba" title="Compare two segments.">operator&gt;</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;Iterator&gt;</a> <span class="keyword">const</span> &amp;l,std::basic_string&lt;CharType,Traits,Alloc&gt; <span class="keyword">const</span> &amp;r)
<a name="l00345"></a>00345 {
<a name="l00346"></a>00346 <span class="keywordflow">return</span> details::compare_text(l,r) &gt; 0;
<a name="l00347"></a>00347 }
<a name="l00349"></a>00349 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc&gt;
<a name="l00350"></a><a class="code" href="group__boundary.html#gadfbbd6c86914627ffdc08397023b020a">00350</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga4d9854493e000ea610108d4689d2f6f1" title="Compare two segments.">operator&gt;=</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;Iterator&gt;</a> <span class="keyword">const</span> &amp;l,std::basic_string&lt;CharType,Traits,Alloc&gt; <span class="keyword">const</span> &amp;r)
<a name="l00351"></a>00351 {
<a name="l00352"></a>00352 <span class="keywordflow">return</span> details::compare_text(l,r) &gt;= 0;
<a name="l00353"></a>00353 }
<a name="l00354"></a>00354
<a name="l00355"></a>00355
<a name="l00357"></a>00357 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00358"></a><a class="code" href="group__boundary.html#ga04c0513778ff3cf9712dd03244a7ecb3">00358</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga47bc5ece5c461aa4c538354a9e80a707">operator==</a>(CharType <span class="keyword">const</span> *l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00359"></a>00359 {
<a name="l00360"></a>00360 <span class="keywordflow">return</span> details::compare_string(l,r) == 0;
<a name="l00361"></a>00361 }
<a name="l00363"></a>00363 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00364"></a><a class="code" href="group__boundary.html#gab8256de904b797b2a57905d3a53f87d7">00364</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#gab92086846a31a6826c00a3df90027f0f">operator!=</a>(CharType <span class="keyword">const</span> *l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00365"></a>00365 {
<a name="l00366"></a>00366 <span class="keywordflow">return</span> details::compare_string(l,r) != 0;
<a name="l00367"></a>00367 }
<a name="l00368"></a>00368
<a name="l00370"></a>00370 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00371"></a><a class="code" href="group__boundary.html#ga5d3bf0c32d4deefe23fa474960b0dea6">00371</a> <span class="keywordtype">bool</span> operator&lt;(CharType const *l,segment&lt;IteratorR&gt; <span class="keyword">const</span> &amp;r)
<a name="l00372"></a>00372 {
<a name="l00373"></a>00373 <span class="keywordflow">return</span> details::compare_string(l,r) &lt; 0;
<a name="l00374"></a>00374 }
<a name="l00376"></a>00376 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00377"></a><a class="code" href="group__boundary.html#gad8fc1bd6bf20fe5337dd91dab7f9084c">00377</a> <span class="keywordtype">bool</span> operator&lt;=(CharType const *l,segment&lt;IteratorR&gt; <span class="keyword">const</span> &amp;r)
<a name="l00378"></a>00378 {
<a name="l00379"></a>00379 <span class="keywordflow">return</span> details::compare_string(l,r) &lt;= 0;
<a name="l00380"></a>00380 }
<a name="l00382"></a>00382 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00383"></a><a class="code" href="group__boundary.html#gaa79f6bb9e721e55d071d7898a3010f8e">00383</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga458e3170d3967ae25c4a40a3970701ba" title="Compare two segments.">operator&gt;</a>(CharType <span class="keyword">const</span> *l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00384"></a>00384 {
<a name="l00385"></a>00385 <span class="keywordflow">return</span> details::compare_string(l,r) &gt; 0;
<a name="l00386"></a>00386 }
<a name="l00388"></a>00388 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> IteratorR&gt;
<a name="l00389"></a><a class="code" href="group__boundary.html#ga4fb2d214673569bf63a5ef97847d8bc3">00389</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga4d9854493e000ea610108d4689d2f6f1" title="Compare two segments.">operator&gt;=</a>(CharType <span class="keyword">const</span> *l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;IteratorR&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00390"></a>00390 {
<a name="l00391"></a>00391 <span class="keywordflow">return</span> details::compare_string(l,r) &gt;= 0;
<a name="l00392"></a>00392 }
<a name="l00393"></a>00393
<a name="l00395"></a>00395 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType&gt;
<a name="l00396"></a><a class="code" href="group__boundary.html#ga2aa32c6dabd5833c3f4806a7a40c0808">00396</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga47bc5ece5c461aa4c538354a9e80a707">operator==</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;Iterator&gt;</a> <span class="keyword">const</span> &amp;l,CharType <span class="keyword">const</span> *r)
<a name="l00397"></a>00397 {
<a name="l00398"></a>00398 <span class="keywordflow">return</span> details::compare_string(l,r) == 0;
<a name="l00399"></a>00399 }
<a name="l00401"></a>00401 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType&gt;
<a name="l00402"></a><a class="code" href="group__boundary.html#gaf50154c65385afc65e206b5fa34fc4ac">00402</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#gab92086846a31a6826c00a3df90027f0f">operator!=</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;Iterator&gt;</a> <span class="keyword">const</span> &amp;l,CharType <span class="keyword">const</span> *r)
<a name="l00403"></a>00403 {
<a name="l00404"></a>00404 <span class="keywordflow">return</span> details::compare_string(l,r) != 0;
<a name="l00405"></a>00405 }
<a name="l00406"></a>00406
<a name="l00408"></a>00408 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType&gt;
<a name="l00409"></a><a class="code" href="group__boundary.html#gad4be80936d6d852d8a07322ea46c49dd">00409</a> <span class="keywordtype">bool</span> operator&lt;(segment&lt;Iterator&gt; <span class="keyword">const</span> &amp;l,CharType <span class="keyword">const</span> *r)
<a name="l00410"></a>00410 {
<a name="l00411"></a>00411 <span class="keywordflow">return</span> details::compare_string(l,r) &lt; 0;
<a name="l00412"></a>00412 }
<a name="l00414"></a>00414 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType&gt;
<a name="l00415"></a><a class="code" href="group__boundary.html#ga1f813e25280a6165cc270ced46bc8c58">00415</a> <span class="keywordtype">bool</span> operator&lt;=(segment&lt;Iterator&gt; <span class="keyword">const</span> &amp;l,CharType <span class="keyword">const</span> *r)
<a name="l00416"></a>00416 {
<a name="l00417"></a>00417 <span class="keywordflow">return</span> details::compare_string(l,r) &lt;= 0;
<a name="l00418"></a>00418 }
<a name="l00420"></a>00420 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType&gt;
<a name="l00421"></a><a class="code" href="group__boundary.html#ga4b12a40f6e30c03e064973a66f8697b8">00421</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga458e3170d3967ae25c4a40a3970701ba" title="Compare two segments.">operator&gt;</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;Iterator&gt;</a> <span class="keyword">const</span> &amp;l,CharType <span class="keyword">const</span> *r)
<a name="l00422"></a>00422 {
<a name="l00423"></a>00423 <span class="keywordflow">return</span> details::compare_string(l,r) &gt; 0;
<a name="l00424"></a>00424 }
<a name="l00426"></a>00426 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType&gt;
<a name="l00427"></a><a class="code" href="group__boundary.html#gae867939516d7fd9cbca258414a0c8377">00427</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga4d9854493e000ea610108d4689d2f6f1" title="Compare two segments.">operator&gt;=</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;Iterator&gt;</a> <span class="keyword">const</span> &amp;l,CharType <span class="keyword">const</span> *r)
<a name="l00428"></a>00428 {
<a name="l00429"></a>00429 <span class="keywordflow">return</span> details::compare_string(l,r) &gt;= 0;
<a name="l00430"></a>00430 }
<a name="l00431"></a>00431
<a name="l00432"></a>00432
<a name="l00433"></a>00433
<a name="l00434"></a>00434
<a name="l00435"></a>00435
<a name="l00436"></a>00436
<a name="l00437"></a><a class="code" href="group__boundary.html#gaac5031c17bd3f7ddc5138546af121064">00437</a> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;std::string::const_iterator&gt;</a> <a class="code" href="group__boundary.html#gaac5031c17bd3f7ddc5138546af121064" title="convenience typedef">ssegment</a>;
<a name="l00438"></a><a class="code" href="group__boundary.html#gaca0e28d417ee314f3035c7561ed5134a">00438</a> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;std::wstring::const_iterator&gt;</a> <a class="code" href="group__boundary.html#gaca0e28d417ee314f3035c7561ed5134a" title="convenience typedef">wssegment</a>;
<a name="l00439"></a>00439 <span class="preprocessor"> #ifdef BOOST_HAS_CHAR16_T</span>
<a name="l00440"></a><a class="code" href="group__boundary.html#ga5084d9529f752361d18c2196f38df3c0">00440</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;std::u16string::const_iterator&gt;</a> <a class="code" href="group__boundary.html#ga5084d9529f752361d18c2196f38df3c0" title="convenience typedef">u16ssegment</a>;
<a name="l00441"></a>00441 <span class="preprocessor"> #endif</span>
<a name="l00442"></a>00442 <span class="preprocessor"></span><span class="preprocessor"> #ifdef BOOST_HAS_CHAR32_T</span>
<a name="l00443"></a><a class="code" href="group__boundary.html#gaffcc722694a39291a9ea7f68a95e1e27">00443</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;std::u32string::const_iterator&gt;</a> <a class="code" href="group__boundary.html#gaffcc722694a39291a9ea7f68a95e1e27" title="convenience typedef">u32ssegment</a>;
<a name="l00444"></a>00444 <span class="preprocessor"> #endif</span>
<a name="l00445"></a>00445 <span class="preprocessor"></span>
<a name="l00446"></a><a class="code" href="group__boundary.html#ga7a89ba0de6cad23a0f1b0b90ca5296f0">00446</a> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;char const *&gt;</a> <a class="code" href="group__boundary.html#ga7a89ba0de6cad23a0f1b0b90ca5296f0" title="convenience typedef">csegment</a>;
<a name="l00447"></a><a class="code" href="group__boundary.html#gab9d26aae843dad891a3bfa736871e843">00447</a> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;wchar_t const *&gt;</a> <a class="code" href="group__boundary.html#gab9d26aae843dad891a3bfa736871e843" title="convenience typedef">wcsegment</a>;
<a name="l00448"></a>00448 <span class="preprocessor"> #ifdef BOOST_HAS_CHAR16_T</span>
<a name="l00449"></a><a class="code" href="group__boundary.html#ga5ff9e98f81ad61dbcd480fc61780fee1">00449</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;char16_t const *&gt;</a> <a class="code" href="group__boundary.html#ga5ff9e98f81ad61dbcd480fc61780fee1" title="convenience typedef">u16csegment</a>;
<a name="l00450"></a>00450 <span class="preprocessor"> #endif</span>
<a name="l00451"></a>00451 <span class="preprocessor"></span><span class="preprocessor"> #ifdef BOOST_HAS_CHAR32_T</span>
<a name="l00452"></a><a class="code" href="group__boundary.html#gaf2077b28c5de700fb5bff9688fe410d6">00452</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;char32_t const *&gt;</a> <a class="code" href="group__boundary.html#gaf2077b28c5de700fb5bff9688fe410d6" title="convenience typedef">u32csegment</a>;
<a name="l00453"></a>00453 <span class="preprocessor"> #endif</span>
<a name="l00454"></a>00454 <span class="preprocessor"></span>
<a name="l00455"></a>00455
<a name="l00456"></a>00456
<a name="l00457"></a>00457
<a name="l00458"></a>00458
<a name="l00462"></a>00462 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> TraitsType,<span class="keyword">typename</span> Iterator&gt;
<a name="l00463"></a><a class="code" href="group__boundary.html#ga66d8f6c9b1c81c36a55aecebd4960b5d">00463</a> std::basic_ostream&lt;CharType,TraitsType&gt; &amp;<a class="code" href="group__boundary.html#ga66d8f6c9b1c81c36a55aecebd4960b5d">operator&lt;&lt;</a>(
<a name="l00464"></a>00464 std::basic_ostream&lt;CharType,TraitsType&gt; &amp;out,
<a name="l00465"></a>00465 <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html" title="a segment object that represents a pair of two iterators that define the range where this segment exi...">segment&lt;Iterator&gt;</a> <span class="keyword">const</span> &amp;tok)
<a name="l00466"></a>00466 {
<a name="l00467"></a>00467 <span class="keywordflow">for</span>(Iterator p=tok.<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a5428ff79bc05b78989f56519b58a6d9c">begin</a>(),e=tok.<a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#aaedd7bb4760bae3dcdb165b330806261">end</a>();p!=e;++p)
<a name="l00468"></a>00468 out &lt;&lt; *p;
<a name="l00469"></a>00469 <span class="keywordflow">return</span> out;
<a name="l00470"></a>00470 }
<a name="l00471"></a>00471
<a name="l00473"></a>00473
<a name="l00474"></a>00474 } <span class="comment">// boundary</span>
<a name="l00475"></a>00475 } <span class="comment">// locale</span>
<a name="l00476"></a>00476 } <span class="comment">// boost</span>
<a name="l00477"></a>00477
<a name="l00478"></a>00478 <span class="preprocessor">#ifdef BOOST_MSVC</span>
<a name="l00479"></a>00479 <span class="preprocessor"></span><span class="preprocessor">#pragma warning(pop)</span>
<a name="l00480"></a>00480 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00481"></a>00481 <span class="preprocessor"></span>
<a name="l00482"></a>00482 <span class="preprocessor">#endif</span>
<a name="l00483"></a>00483 <span class="preprocessor"></span>
<a name="l00484"></a>00484 <span class="comment">// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4</span>
</pre></div></div><!-- contents -->
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><b>segment.hpp</b> </li>
<li class="footer">
&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.
</li>
</ul>
</div>
</body>
</html>