Overload of StrSplit() that filters substrings with a Predicate.
Declared in <absl/strings/str_split.h>
template<
typename Delimiter,
typename Predicate>
/* implementation-defined */::Splitter</* implementation-defined */::type, Predicate, std::string_view>
StrSplit(
/* implementation-defined */::ConvertibleToStringView text,
Delimiter d,
Predicate p);
A lazy range of the retained substrings.
| Name | Description |
|---|---|
| text | The string to split. |
| d | The delimiter identifying the split points. |
| p | The predicate that decides whether a substring is included. |