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

Defines string-related predicates. More...

Include dependency graph for predicate.hpp:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

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.