Defines string-related predicates. More...
#include <boost/algorithm/string/config.hpp>#include <boost/range/begin.hpp>#include <boost/range/end.hpp>#include <boost/range/iterator.hpp>#include <boost/range/const_iterator.hpp>#include <boost/range/as_literal.hpp>#include <boost/range/iterator_range_core.hpp>#include <boost/algorithm/string/compare.hpp>#include <boost/algorithm/string/find.hpp>#include <boost/algorithm/string/detail/predicate.hpp>

Namespaces | |
| boost | |
| Duration formatting facet for input. | |
| boost::algorithm | |
Functions | |
| template<typename Range1T , typename Range2T , typename PredicateT > | |
| bool | boost::algorithm::starts_with (const Range1T &Input, const Range2T &Test, PredicateT Comp) |
| 'Starts with' predicate More... | |
| template<typename Range1T , typename Range2T > | |
| bool | boost::algorithm::starts_with (const Range1T &Input, const Range2T &Test) |
| 'Starts with' predicate More... | |
| template<typename Range1T , typename Range2T > | |
| bool | boost::algorithm::istarts_with (const Range1T &Input, const Range2T &Test, const std::locale &Loc=std::locale()) |
| 'Starts with' predicate ( case insensitive ) More... | |
| template<typename Range1T , typename Range2T , typename PredicateT > | |
| bool | boost::algorithm::ends_with (const Range1T &Input, const Range2T &Test, PredicateT Comp) |
| 'Ends with' predicate More... | |
| template<typename Range1T , typename Range2T > | |
| bool | boost::algorithm::ends_with (const Range1T &Input, const Range2T &Test) |
| 'Ends with' predicate More... | |
| template<typename Range1T , typename Range2T > | |
| bool | boost::algorithm::iends_with (const Range1T &Input, const Range2T &Test, const std::locale &Loc=std::locale()) |
| 'Ends with' predicate ( case insensitive ) More... | |
| template<typename Range1T , typename Range2T , typename PredicateT > | |
| bool | boost::algorithm::contains (const Range1T &Input, const Range2T &Test, PredicateT Comp) |
| 'Contains' predicate More... | |
| template<typename Range1T , typename Range2T > | |
| bool | boost::algorithm::contains (const Range1T &Input, const Range2T &Test) |
| 'Contains' predicate More... | |
| template<typename Range1T , typename Range2T > | |
| bool | boost::algorithm::icontains (const Range1T &Input, const Range2T &Test, const std::locale &Loc=std::locale()) |
| 'Contains' predicate ( case insensitive ) More... | |
| template<typename Range1T , typename Range2T , typename PredicateT > | |
| bool | boost::algorithm::equals (const Range1T &Input, const Range2T &Test, PredicateT Comp) |
| 'Equals' predicate More... | |
| template<typename Range1T , typename Range2T > | |
| bool | boost::algorithm::equals (const Range1T &Input, const Range2T &Test) |
| 'Equals' predicate More... | |
| template<typename Range1T , typename Range2T > | |
| bool | boost::algorithm::iequals (const Range1T &Input, const Range2T &Test, const std::locale &Loc=std::locale()) |
| 'Equals' predicate ( case insensitive ) More... | |
| template<typename Range1T , typename Range2T , typename PredicateT > | |
| bool | boost::algorithm::lexicographical_compare (const Range1T &Arg1, const Range2T &Arg2, PredicateT Pred) |
| Lexicographical compare predicate. More... | |
| template<typename Range1T , typename Range2T > | |
| bool | boost::algorithm::lexicographical_compare (const Range1T &Arg1, const Range2T &Arg2) |
| Lexicographical compare predicate. More... | |
| template<typename Range1T , typename Range2T > | |
| bool | boost::algorithm::ilexicographical_compare (const Range1T &Arg1, const Range2T &Arg2, const std::locale &Loc=std::locale()) |
| Lexicographical compare predicate (case-insensitive) More... | |
| template<typename RangeT , typename PredicateT > | |
| bool | boost::algorithm::all (const RangeT &Input, PredicateT Pred) |
| 'All' predicate More... | |
Defines string-related predicates.
The predicates determine whether a substring is contained in the input string under various conditions: a string starts with the substring, ends with the substring, simply contains the substring or if both strings are equal. Additionaly the algorithm all() checks all elements of a container to satisfy a condition.
All predicates provide the strong exception guarantee.