mirror of
https://github.com/boostorg/locale.git
synced 2026-02-22 15:32:26 +00:00
- cleanup of inspect warnings - various requiremets like libraries.htm and maintainers.txt [SVN r73786]
439 lines
56 KiB
HTML
439 lines
56 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"/>
|
|
<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 rel="stylesheet" type="text/css" href="../style/section-basic.css">
|
|
</head>
|
|
<body>
|
|
<div id="boost-common-heading-doc">
|
|
<div class="heading-inner">
|
|
<div class="heading-placard"></div>
|
|
|
|
<h1 class="heading-title">
|
|
<a href="http://www.boost.org/">
|
|
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
|
|
<span class="heading-boost">Boost</span>
|
|
<span class="heading-cpplibraries">C++ Libraries</span>
|
|
</a>
|
|
</h1>
|
|
|
|
<p class="heading-quote">
|
|
|
|
<q>...one of the most highly
|
|
regarded and expertly designed C++ library projects in the
|
|
world.</q>
|
|
|
|
<span class="heading-attribution">— <a href=
|
|
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
|
|
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
|
|
Alexandrescu</a>, <a href=
|
|
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
|
|
Coding Standards</a></span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="boost-common-heading-doc-spacer"></div>
|
|
<!-- Generated by Doxygen 1.7.1 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="main.html"><span>Main 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 class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<h1>boost/locale/boundary/segment.hpp</h1> </div>
|
|
</div>
|
|
<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 <boost/locale/config.hpp></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 <locale></span>
|
|
<a name="l00016"></a>00016 <span class="preprocessor">#include <string></span>
|
|
<a name="l00017"></a>00017 <span class="preprocessor">#include <iosfwd></span>
|
|
<a name="l00018"></a>00018 <span class="preprocessor">#include <iterator></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><<span class="keyword">typename</span> LeftIterator,<span class="keyword">typename</span> RightIterator>
|
|
<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<left_iterator>::value_type char_type;
|
|
<a name="l00032"></a>00032 <span class="keyword">typedef</span> std::char_traits<char_type> traits;
|
|
<a name="l00033"></a>00033 <span class="keywordflow">while</span>(l_begin!=l_end && 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 && 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><<span class="keyword">typename</span> Left,<span class="keyword">typename</span> Right>
|
|
<a name="l00053"></a>00053 <span class="keywordtype">int</span> compare_text(Left <span class="keyword">const</span> &l,Right <span class="keyword">const</span> &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><<span class="keyword">typename</span> Left,<span class="keyword">typename</span> Char>
|
|
<a name="l00059"></a>00059 <span class="keywordtype">int</span> compare_string(Left <span class="keyword">const</span> &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><<span class="keyword">typename</span> Right,<span class="keyword">typename</span> Char>
|
|
<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> &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><<span class="keyword">typename</span> IteratorType>
|
|
<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<IteratorType,IteratorType> {
|
|
<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<IteratorType>::value_type char_type;
|
|
<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<char_type> string_type;
|
|
<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 value_type;
|
|
<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 iterator;
|
|
<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 const_iterator;
|
|
<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<IteratorType>::difference_type difference_type;
|
|
<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<IteratorType,IteratorType>(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> &v)
|
|
<a name="l00146"></a>00146 {
|
|
<a name="l00147"></a>00147 this->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> &v)
|
|
<a name="l00153"></a>00153 {
|
|
<a name="l00154"></a>00154 this->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->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->second;
|
|
<a name="l00170"></a>00170 }
|
|
<a name="l00171"></a>00171
|
|
<a name="l00175"></a>00175 <span class="keyword">template</span> <<span class="keyword">class</span> T, <span class="keyword">class</span> A>
|
|
<a name="l00176"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a76e2717f48ca7a6336a9fede9dec4d40">00176</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1segment.html#a76e2717f48ca7a6336a9fede9dec4d40">operator std::basic_string<char_type, T, A> </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<char_type, T, A>(this->first, this->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> str()<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>(begin(),end());
|
|
<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> length()<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(begin(),end());
|
|
<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> empty()<span class="keyword"> const</span>
|
|
<a name="l00202"></a>00202 <span class="keyword"> </span>{
|
|
<a name="l00203"></a>00203 <span class="keywordflow">return</span> begin() == end();
|
|
<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> rule()<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> rule(<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'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="group__boundary.html#ga43283ecda927605b1b802a3c3306bfb1">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> &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="group__boundary.html#ga11ff477ceecc7cbc274d998c3676126e">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> &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><<span class="keyword">typename</span> IteratorL,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00243"></a><a class="code" href="group__boundary.html#ga2b32edcb7e385885cc7bb6ed32e0ee94">00243</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga43283ecda927605b1b802a3c3306bfb1">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<IteratorL></a> <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<IteratorR></a> <span class="keyword">const</span> &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><<span class="keyword">typename</span> IteratorL,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00249"></a><a class="code" href="group__boundary.html#ga92e8bdaf8e347b65b711ef2437ad9348">00249</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga11ff477ceecc7cbc274d998c3676126e">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<IteratorL></a> <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<IteratorR></a> <span class="keyword">const</span> &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><<span class="keyword">typename</span> IteratorL,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00256"></a><a class="code" href="group__boundary.html#ga3312b16b2a678780f2354e8addac83fd">00256</a> <span class="keywordtype">bool</span> operator<(segment<IteratorL> <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<IteratorR></a> <span class="keyword">const</span> &r)
|
|
<a name="l00257"></a>00257 {
|
|
<a name="l00258"></a>00258 <span class="keywordflow">return</span> details::compare_text(l,r) < 0;
|
|
<a name="l00259"></a>00259 }
|
|
<a name="l00261"></a>00261 <span class="keyword">template</span><<span class="keyword">typename</span> IteratorL,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00262"></a><a class="code" href="group__boundary.html#gaf36ebfa12ec261fd4425eafe49245009">00262</a> <span class="keywordtype">bool</span> operator<=(segment<IteratorL> <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<IteratorR></a> <span class="keyword">const</span> &r)
|
|
<a name="l00263"></a>00263 {
|
|
<a name="l00264"></a>00264 <span class="keywordflow">return</span> details::compare_text(l,r) <= 0;
|
|
<a name="l00265"></a>00265 }
|
|
<a name="l00267"></a>00267 <span class="keyword">template</span><<span class="keyword">typename</span> IteratorL,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00268"></a><a class="code" href="group__boundary.html#gac09337a84a82c4f366148c98a69dddd4">00268</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#gac09337a84a82c4f366148c98a69dddd4" 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<IteratorL></a> <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<IteratorR></a> <span class="keyword">const</span> &r)
|
|
<a name="l00269"></a>00269 {
|
|
<a name="l00270"></a>00270 <span class="keywordflow">return</span> details::compare_text(l,r) > 0;
|
|
<a name="l00271"></a>00271 }
|
|
<a name="l00273"></a>00273 <span class="keyword">template</span><<span class="keyword">typename</span> IteratorL,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00274"></a><a class="code" href="group__boundary.html#ga4cb705d03b2611464478733338539430">00274</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga4cb705d03b2611464478733338539430" 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<IteratorL></a> <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<IteratorR></a> <span class="keyword">const</span> &r)
|
|
<a name="l00275"></a>00275 {
|
|
<a name="l00276"></a>00276 <span class="keywordflow">return</span> details::compare_text(l,r) >= 0;
|
|
<a name="l00277"></a>00277 }
|
|
<a name="l00278"></a>00278
|
|
<a name="l00280"></a>00280 <span class="keyword">template</span><<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00281"></a><a class="code" href="group__boundary.html#gae7ac339ac890f13ae989589fd27b042a">00281</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga43283ecda927605b1b802a3c3306bfb1">operator==</a>(std::basic_string<CharType,Traits,Alloc> <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<IteratorR></a> <span class="keyword">const</span> &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><<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00287"></a><a class="code" href="group__boundary.html#ga36e8f0b7bfc18651da1d5b85d097daf2">00287</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga11ff477ceecc7cbc274d998c3676126e">operator!=</a>(std::basic_string<CharType,Traits,Alloc> <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<IteratorR></a> <span class="keyword">const</span> &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><<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00294"></a><a class="code" href="group__boundary.html#ga0932175037e72b6988169afd0ae38e6e">00294</a> <span class="keywordtype">bool</span> operator<(std::basic_string<CharType,Traits,Alloc> <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<IteratorR></a> <span class="keyword">const</span> &r)
|
|
<a name="l00295"></a>00295 {
|
|
<a name="l00296"></a>00296 <span class="keywordflow">return</span> details::compare_text(l,r) < 0;
|
|
<a name="l00297"></a>00297 }
|
|
<a name="l00299"></a>00299 <span class="keyword">template</span><<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00300"></a><a class="code" href="group__boundary.html#ga81060e764be6d980bb0675fb9f5e9812">00300</a> <span class="keywordtype">bool</span> operator<=(std::basic_string<CharType,Traits,Alloc> <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<IteratorR></a> <span class="keyword">const</span> &r)
|
|
<a name="l00301"></a>00301 {
|
|
<a name="l00302"></a>00302 <span class="keywordflow">return</span> details::compare_text(l,r) <= 0;
|
|
<a name="l00303"></a>00303 }
|
|
<a name="l00305"></a>00305 <span class="keyword">template</span><<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00306"></a><a class="code" href="group__boundary.html#ga82536a8f6542277280e93b8f46537f8a">00306</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#gac09337a84a82c4f366148c98a69dddd4" title="Compare two segments.">operator></a>(std::basic_string<CharType,Traits,Alloc> <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<IteratorR></a> <span class="keyword">const</span> &r)
|
|
<a name="l00307"></a>00307 {
|
|
<a name="l00308"></a>00308 <span class="keywordflow">return</span> details::compare_text(l,r) > 0;
|
|
<a name="l00309"></a>00309 }
|
|
<a name="l00311"></a>00311 <span class="keyword">template</span><<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00312"></a><a class="code" href="group__boundary.html#gafbcf10a14a62b789df75fa4223a2ff92">00312</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga4cb705d03b2611464478733338539430" title="Compare two segments.">operator>=</a>(std::basic_string<CharType,Traits,Alloc> <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<IteratorR></a> <span class="keyword">const</span> &r)
|
|
<a name="l00313"></a>00313 {
|
|
<a name="l00314"></a>00314 <span class="keywordflow">return</span> details::compare_text(l,r) >= 0;
|
|
<a name="l00315"></a>00315 }
|
|
<a name="l00316"></a>00316
|
|
<a name="l00318"></a>00318 <span class="keyword">template</span><<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc>
|
|
<a name="l00319"></a><a class="code" href="group__boundary.html#ga46962dd62a6655fd34b9ec165af2d391">00319</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga43283ecda927605b1b802a3c3306bfb1">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<Iterator></a> <span class="keyword">const</span> &l,std::basic_string<CharType,Traits,Alloc> <span class="keyword">const</span> &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><<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc>
|
|
<a name="l00325"></a><a class="code" href="group__boundary.html#ga4932acde9903090a1d8451b2e8eb7cce">00325</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga11ff477ceecc7cbc274d998c3676126e">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<Iterator></a> <span class="keyword">const</span> &l,std::basic_string<CharType,Traits,Alloc> <span class="keyword">const</span> &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><<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc>
|
|
<a name="l00332"></a><a class="code" href="group__boundary.html#ga0a251376a40e702e33fd067d44df4aa7">00332</a> <span class="keywordtype">bool</span> operator<(segment<Iterator> <span class="keyword">const</span> &l,std::basic_string<CharType,Traits,Alloc> <span class="keyword">const</span> &r)
|
|
<a name="l00333"></a>00333 {
|
|
<a name="l00334"></a>00334 <span class="keywordflow">return</span> details::compare_text(l,r) < 0;
|
|
<a name="l00335"></a>00335 }
|
|
<a name="l00337"></a>00337 <span class="keyword">template</span><<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc>
|
|
<a name="l00338"></a><a class="code" href="group__boundary.html#gaa261b02fb8190249aeabe9558422b510">00338</a> <span class="keywordtype">bool</span> operator<=(segment<Iterator> <span class="keyword">const</span> &l,std::basic_string<CharType,Traits,Alloc> <span class="keyword">const</span> &r)
|
|
<a name="l00339"></a>00339 {
|
|
<a name="l00340"></a>00340 <span class="keywordflow">return</span> details::compare_text(l,r) <= 0;
|
|
<a name="l00341"></a>00341 }
|
|
<a name="l00343"></a>00343 <span class="keyword">template</span><<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc>
|
|
<a name="l00344"></a><a class="code" href="group__boundary.html#gacb4ee8e6dd72faa9a70a6200f1086083">00344</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#gac09337a84a82c4f366148c98a69dddd4" 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<Iterator></a> <span class="keyword">const</span> &l,std::basic_string<CharType,Traits,Alloc> <span class="keyword">const</span> &r)
|
|
<a name="l00345"></a>00345 {
|
|
<a name="l00346"></a>00346 <span class="keywordflow">return</span> details::compare_text(l,r) > 0;
|
|
<a name="l00347"></a>00347 }
|
|
<a name="l00349"></a>00349 <span class="keyword">template</span><<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> Traits,<span class="keyword">typename</span> Alloc>
|
|
<a name="l00350"></a><a class="code" href="group__boundary.html#gaa83d2203efdaaa9ba0efdb5a4d8505c6">00350</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga4cb705d03b2611464478733338539430" 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<Iterator></a> <span class="keyword">const</span> &l,std::basic_string<CharType,Traits,Alloc> <span class="keyword">const</span> &r)
|
|
<a name="l00351"></a>00351 {
|
|
<a name="l00352"></a>00352 <span class="keywordflow">return</span> details::compare_text(l,r) >= 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><<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00358"></a><a class="code" href="group__boundary.html#gab6ee0e4f55fc5346b3824a43851d8aa8">00358</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga43283ecda927605b1b802a3c3306bfb1">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<IteratorR></a> <span class="keyword">const</span> &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><<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00364"></a><a class="code" href="group__boundary.html#gadd8ef92312098f5301a04ead7e7820ee">00364</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga11ff477ceecc7cbc274d998c3676126e">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<IteratorR></a> <span class="keyword">const</span> &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><<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00371"></a><a class="code" href="group__boundary.html#gacc75c28d1a9785f13bf8262f1ab16c42">00371</a> <span class="keywordtype">bool</span> operator<(CharType const *l,segment<IteratorR> <span class="keyword">const</span> &r)
|
|
<a name="l00372"></a>00372 {
|
|
<a name="l00373"></a>00373 <span class="keywordflow">return</span> details::compare_string(l,r) < 0;
|
|
<a name="l00374"></a>00374 }
|
|
<a name="l00376"></a>00376 <span class="keyword">template</span><<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00377"></a><a class="code" href="group__boundary.html#ga3c55926456f7174f26d4cb8d21827f5b">00377</a> <span class="keywordtype">bool</span> operator<=(CharType const *l,segment<IteratorR> <span class="keyword">const</span> &r)
|
|
<a name="l00378"></a>00378 {
|
|
<a name="l00379"></a>00379 <span class="keywordflow">return</span> details::compare_string(l,r) <= 0;
|
|
<a name="l00380"></a>00380 }
|
|
<a name="l00382"></a>00382 <span class="keyword">template</span><<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00383"></a><a class="code" href="group__boundary.html#ga0b8814055201ec3ea36f0a01d891ad3d">00383</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#gac09337a84a82c4f366148c98a69dddd4" title="Compare two segments.">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<IteratorR></a> <span class="keyword">const</span> &r)
|
|
<a name="l00384"></a>00384 {
|
|
<a name="l00385"></a>00385 <span class="keywordflow">return</span> details::compare_string(l,r) > 0;
|
|
<a name="l00386"></a>00386 }
|
|
<a name="l00388"></a>00388 <span class="keyword">template</span><<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> IteratorR>
|
|
<a name="l00389"></a><a class="code" href="group__boundary.html#ga7a101883e579432250960545a9cebc5b">00389</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga4cb705d03b2611464478733338539430" title="Compare two segments.">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<IteratorR></a> <span class="keyword">const</span> &r)
|
|
<a name="l00390"></a>00390 {
|
|
<a name="l00391"></a>00391 <span class="keywordflow">return</span> details::compare_string(l,r) >= 0;
|
|
<a name="l00392"></a>00392 }
|
|
<a name="l00393"></a>00393
|
|
<a name="l00395"></a>00395 <span class="keyword">template</span><<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType>
|
|
<a name="l00396"></a><a class="code" href="group__boundary.html#gae790fec4c9f079010027dc60cbfe7358">00396</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga43283ecda927605b1b802a3c3306bfb1">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<Iterator></a> <span class="keyword">const</span> &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><<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType>
|
|
<a name="l00402"></a><a class="code" href="group__boundary.html#ga6664b475504a2396662bc3658b982e0c">00402</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga11ff477ceecc7cbc274d998c3676126e">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<Iterator></a> <span class="keyword">const</span> &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><<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType>
|
|
<a name="l00409"></a><a class="code" href="group__boundary.html#ga313c2d3e6270e57dc48587f52833e111">00409</a> <span class="keywordtype">bool</span> operator<(segment<Iterator> <span class="keyword">const</span> &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) < 0;
|
|
<a name="l00412"></a>00412 }
|
|
<a name="l00414"></a>00414 <span class="keyword">template</span><<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType>
|
|
<a name="l00415"></a><a class="code" href="group__boundary.html#ga8736ae89a477d37d196e137e51f546f4">00415</a> <span class="keywordtype">bool</span> operator<=(segment<Iterator> <span class="keyword">const</span> &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) <= 0;
|
|
<a name="l00418"></a>00418 }
|
|
<a name="l00420"></a>00420 <span class="keyword">template</span><<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType>
|
|
<a name="l00421"></a><a class="code" href="group__boundary.html#ga46a945423c982c08c8143eaced7878bf">00421</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#gac09337a84a82c4f366148c98a69dddd4" 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<Iterator></a> <span class="keyword">const</span> &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) > 0;
|
|
<a name="l00424"></a>00424 }
|
|
<a name="l00426"></a>00426 <span class="keyword">template</span><<span class="keyword">typename</span> Iterator,<span class="keyword">typename</span> CharType>
|
|
<a name="l00427"></a><a class="code" href="group__boundary.html#gacd03bf4305835d4dc2db8e98a67d8e4c">00427</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga4cb705d03b2611464478733338539430" 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<Iterator></a> <span class="keyword">const</span> &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) >= 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<std::string::const_iterator></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...">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<std::wstring::const_iterator></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...">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<std::u16string::const_iterator></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...">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<std::u32string::const_iterator></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...">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<char const *></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...">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<wchar_t const *></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...">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<char16_t const *></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...">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<char32_t const *></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...">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><<span class="keyword">typename</span> CharType,<span class="keyword">typename</span> TraitsType,<span class="keyword">typename</span> Iterator>
|
|
<a name="l00463"></a><a class="code" href="group__boundary.html#ga52e8a81834c07879736a585f33af5de6">00463</a> std::basic_ostream<CharType,TraitsType> &<a class="code" href="group__date__time.html#ga0055f16ba156eb9a3f333c2bf2eae815">operator<<</a>(
|
|
<a name="l00464"></a>00464 std::basic_ostream<CharType,TraitsType> &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<Iterator></a> <span class="keyword">const</span> &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 << *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>
|
|
</div>
|
|
<hr class="footer"/><address class="footer"><small>
|
|
© Copyright 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
|
|
</small></address>
|
|
</body>
|
|
</html>
|