class ByLength
Defined at line 231 of file ../../third_party/abseil-cpp/src/absl/strings/str_split.h
// v[0] == "123", v[1] == "456", v[2] == "789"
Note that the string does not have to be a multiple of the fixed split
length. In such a case, the last substring will be shorter.
using absl::ByLength;
std::vector
<std
::string> v = absl::StrSplit("12345", ByLength(2));
// v[0] == "12", v[1] == "34", v[2] == "5"
Public Methods
void ByLength (ptrdiff_t length)
absl::string_view Find (absl::string_view text, size_t pos)