Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
trim.hpp File Reference

Defines trim algorithms. More...

#include <boost/algorithm/string/config.hpp>
#include <boost/range/begin.hpp>
#include <boost/range/end.hpp>
#include <boost/range/const_iterator.hpp>
#include <boost/range/as_literal.hpp>
#include <boost/range/iterator_range_core.hpp>
#include <boost/algorithm/string/detail/trim.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <locale>
Include dependency graph for trim.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::algorithm
 

Functions

template<typename OutputIteratorT , typename RangeT , typename PredicateT >
OutputIteratorT boost::algorithm::trim_left_copy_if (OutputIteratorT Output, const RangeT &Input, PredicateT IsSpace)
 Left trim - parametric. More...
 
template<typename SequenceT , typename PredicateT >
SequenceT boost::algorithm::trim_left_copy_if (const SequenceT &Input, PredicateT IsSpace)
 Left trim - parametric. More...
 
template<typename SequenceT >
SequenceT boost::algorithm::trim_left_copy (const SequenceT &Input, const std::locale &Loc=std::locale())
 Left trim - parametric. More...
 
template<typename SequenceT , typename PredicateT >
void boost::algorithm::trim_left_if (SequenceT &Input, PredicateT IsSpace)
 Left trim. More...
 
template<typename SequenceT >
void boost::algorithm::trim_left (SequenceT &Input, const std::locale &Loc=std::locale())
 Left trim. More...
 
template<typename OutputIteratorT , typename RangeT , typename PredicateT >
OutputIteratorT boost::algorithm::trim_right_copy_if (OutputIteratorT Output, const RangeT &Input, PredicateT IsSpace)
 Right trim - parametric. More...
 
template<typename SequenceT , typename PredicateT >
SequenceT boost::algorithm::trim_right_copy_if (const SequenceT &Input, PredicateT IsSpace)
 Right trim - parametric. More...
 
template<typename SequenceT >
SequenceT boost::algorithm::trim_right_copy (const SequenceT &Input, const std::locale &Loc=std::locale())
 Right trim. More...
 
template<typename SequenceT , typename PredicateT >
void boost::algorithm::trim_right_if (SequenceT &Input, PredicateT IsSpace)
 Right trim - parametric. More...
 
template<typename SequenceT >
void boost::algorithm::trim_right (SequenceT &Input, const std::locale &Loc=std::locale())
 Right trim. More...
 
template<typename OutputIteratorT , typename RangeT , typename PredicateT >
OutputIteratorT boost::algorithm::trim_copy_if (OutputIteratorT Output, const RangeT &Input, PredicateT IsSpace)
 Trim - parametric. More...
 
template<typename SequenceT , typename PredicateT >
SequenceT boost::algorithm::trim_copy_if (const SequenceT &Input, PredicateT IsSpace)
 Trim - parametric. More...
 
template<typename SequenceT >
SequenceT boost::algorithm::trim_copy (const SequenceT &Input, const std::locale &Loc=std::locale())
 Trim. More...
 
template<typename SequenceT , typename PredicateT >
void boost::algorithm::trim_if (SequenceT &Input, PredicateT IsSpace)
 Trim. More...
 
template<typename SequenceT >
void boost::algorithm::trim (SequenceT &Input, const std::locale &Loc=std::locale())
 Trim. More...
 

Detailed Description

Defines trim algorithms.

Trim algorithms are used to remove trailing and leading spaces from a sequence (string). Space is recognized using given locales.

Parametric (_if) variants use a predicate (functor) to select which characters are to be trimmed.. Functions take a selection predicate as a parameter, which is used to determine whether a character is a space. Common predicates are provided in classification.hpp header.