class ByString

Defined at line 124 of file ../../third_party/abseil-cpp/src/absl/strings/str_split.h

ByString

A sub-string delimiter. If `StrSplit()` is passed a string in place of a

`Delimiter` object, the string will be implicitly converted into a

`ByString` delimiter.

Example:

// Because a string literal is converted to an `absl::ByString`,

// the following two splits are equivalent.

std::vector

<std

::string> v1 = absl::StrSplit("a, b, c", ", ");

using absl::ByString;

std::vector

<std

::string> v2 = absl::StrSplit("a, b, c",

ByString(", "));

// v[0] == "a", v[1] == "b", v[2] == "c"

Public Methods

void ByString (absl::string_view sp)
absl::string_view Find (absl::string_view text, size_t pos)