split, to an output iterator
Declared in <folly/String.h>
template<
class OutputValueType,
class Delim,
class String,
class OutputIterator>
void
splitTo(
Delim const& delimiter,
String const& input,
OutputIterator out,
bool const ignoreEmpty = false);
| Name | Description |
|---|---|
| delimiter | The delimiter to split on. |
| input | The string to split. |
| out | The output iterator that the resulting tokens are written to. |
| ignoreEmpty | Whether to merge adjacent delimiters and drop empty tokens. |