123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- #ifndef BOOST_STRING_SPLIT_HPP
- #define BOOST_STRING_SPLIT_HPP
- #include <boost/algorithm/string/config.hpp>
- #include <boost/algorithm/string/iter_find.hpp>
- #include <boost/algorithm/string/finder.hpp>
- #include <boost/algorithm/string/compare.hpp>
- namespace boost {
- namespace algorithm {
-
-
- template< typename SequenceSequenceT, typename Range1T, typename Range2T >
- inline SequenceSequenceT& find_all(
- SequenceSequenceT& Result,
- Range1T& Input,
- const Range2T& Search)
- {
- return iter_find(
- Result,
- Input,
- first_finder(Search) );
- }
-
-
- template< typename SequenceSequenceT, typename Range1T, typename Range2T >
- inline SequenceSequenceT& ifind_all(
- SequenceSequenceT& Result,
- Range1T& Input,
- const Range2T& Search,
- const std::locale& Loc=std::locale() )
- {
- return iter_find(
- Result,
- Input,
- first_finder(Search, is_iequal(Loc) ) );
- }
-
-
- template< typename SequenceSequenceT, typename RangeT, typename PredicateT >
- inline SequenceSequenceT& split(
- SequenceSequenceT& Result,
- RangeT& Input,
- PredicateT Pred,
- token_compress_mode_type eCompress=token_compress_off )
- {
- return iter_split(
- Result,
- Input,
- token_finder( Pred, eCompress ) );
- }
- }
-
- using algorithm::find_all;
- using algorithm::ifind_all;
- using algorithm::split;
- }
- #endif
|