#include "breeze/text/split.hpp" template <typename UnaryPredicate> std::vector< std::string > split_if(std::string const &s, UnaryPredicate pred)
- A vector of strings obtained by splitting
sat each character which satisfies the predicate
pred, in order.
predis called a separator in the following.
Consecutive separators, or separators as first or last character in
s, lead to an empty string in the resulting vector. The size of the vector is always one plus the number of separators in
- This should probably use