#include <string>
Go to the source code of this file.
|
template<typename E , typename C > |
size_t | split (std::basic_string< E > const &s, C &container, E const delimiter, bool keepBlankFields=true) |
|
template<typename E , typename C >
size_t split |
( |
std::basic_string< E > const & |
s, |
|
|
C & |
container, |
|
|
E const |
delimiter, |
|
|
bool |
keepBlankFields = true |
|
) |
| |
Definition at line 22 of file split.h.
References end, plotBeamSpotDB::first, and gen::n.
28 typename std::basic_string<E>::const_iterator it =
s.begin(),
end =
s.end(),
first;
34 if (keepBlankFields ||
first != it)
38 container.push_back(std::basic_string<E>(
first, it));
50 if (keepBlankFields ||
first != it)
54 container.push_back(std::basic_string<E>(
first, it));