folly::gen::unsplit

unsplit overloads

Synopses

Declared in <folly/gen/String.h>

Joins a sequence of tokens into a string using a C-string delimiter.

template<
    class Output = folly::fbstring,
    class Unsplit = /* implementation-defined */>
Unsplit
unsplit(char const* delimiter);
» more...

Joins a sequence of tokens into a string using the given delimiter.

template<
    class Output = folly::fbstring,
    class Delimiter,
    class Unsplit = /* implementation-defined */>
Unsplit
unsplit(Delimiter const& delimiter);
» more...

Joins a sequence of tokens into a buffer using a C-string delimiter.

template<
    class OutputBuffer,
    class UnsplitBuffer = /* implementation-defined */>
UnsplitBuffer
unsplit(
    char const* delimiter,
    OutputBuffer* outputBuffer);
» more...

Joins a sequence of tokens into a buffer using the given delimiter.

template<
    class Delimiter,
    class OutputBuffer,
    class UnsplitBuffer = /* implementation-defined */>
UnsplitBuffer
unsplit(
    Delimiter delimiter,
    OutputBuffer* outputBuffer);
» more...

Return Value

  • A sink that produces the joined tokens as a string.
  • A sink that appends the joined tokens to outputBuffer.

Parameters

NameDescription
delimiterThe delimiter inserted between tokens.
outputBufferThe buffer the joined tokens are appended to.