MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / trim_right_copy_if

Function trim_right_copy_if

extern/boost/boost/algorithm/string/trim.hpp:169–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 */
168 template<typename OutputIteratorT, typename RangeT, typename PredicateT>
169 inline OutputIteratorT trim_right_copy_if(
170 OutputIteratorT Output,
171 const RangeT& Input,
172 PredicateT IsSpace )
173 {
174 iterator_range<BOOST_STRING_TYPENAME range_const_iterator<RangeT>::type> lit_range(::boost::as_literal(Input));
175
176 std::copy(
177 ::boost::begin(lit_range),
178 ::boost::algorithm::detail::trim_end(
179 ::boost::begin(lit_range),
180 ::boost::end(lit_range),
181 IsSpace ),
182 Output );
183
184 return Output;
185 }
186
187 //! Right trim - parametric
188 /*!

Callers 1

trim_right_copyFunction · 0.85

Calls 5

as_literalFunction · 0.85
trim_endFunction · 0.85
copyFunction · 0.50
beginClass · 0.50
endClass · 0.50

Tested by

no test coverage detected