Iterate over partitions of a string split on character Separator.

Synopsis

Declared in <llvm/ADT/StringExtras.h>

iterator_range<SplittingIterator>
split(
    StringRef Str,
    char Separator);

Return Value

A range of partitions of Str.

Parameters

Name

Description

Str

string to partition

Separator

single‐character delimiter

Created with MrDocs