split overloads

Synopses

Declared in <folly/gen/String.h>

Splits a string into pieces separated by a multi‐byte delimiter.

template<class S = /* implementation-defined */>
S
split(
    StringPiece source,
    StringPiece delimiter);

Splits a string into pieces separated by a single‐character delimiter.

template<class S = /* implementation-defined */>
S
split(
    StringPiece const source,
    char delimiter);

Return Value

A source generator yielding each piece of source.

Parameters

Name

Description

source

The string to split.

delimiter

The delimiter separating pieces.

Created with MrDocs