MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / ends_with

Function ends_with

include/win/boost/algorithm/string/predicate.hpp:139–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 */
138 template<typename Range1T, typename Range2T, typename PredicateT>
139 inline bool ends_with(
140 const Range1T& Input,
141 const Range2T& Test,
142 PredicateT Comp)
143 {
144 iterator_range<BOOST_STRING_TYPENAME range_const_iterator<Range1T>::type> lit_input(::boost::as_literal(Input));
145 iterator_range<BOOST_STRING_TYPENAME range_const_iterator<Range2T>::type> lit_test(::boost::as_literal(Test));
146
147 typedef BOOST_STRING_TYPENAME
148 range_const_iterator<Range1T>::type Iterator1T;
149 typedef BOOST_STRING_TYPENAME boost::detail::
150 iterator_traits<Iterator1T>::iterator_category category;
151
152 return detail::
153 ends_with_iter_select(
154 ::boost::begin(lit_input),
155 ::boost::end(lit_input),
156 ::boost::begin(lit_test),
157 ::boost::end(lit_test),
158 Comp,
159 category());
160 }
161
162
163 //! 'Ends with' predicate

Callers 1

iends_withFunction · 0.70

Calls 5

is_equalClass · 0.85
as_literalFunction · 0.50
beginFunction · 0.50
endFunction · 0.50
categoryClass · 0.50

Tested by

no test coverage detected