Function split

Synopsis

#include "breeze/text/split.hpp"

std::vector< std::string > split(std::string const &s, std::string const &separators)

Description

Returns
A vector of strings obtained by splitting s at each character present in separators, in order.
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 s.
Note
This should probably use set_of_chars.

Source

Line 38 in breeze/text/split.hpp.