class ByChar
Defined at line 174 of file ../../third_party/abseil-cpp/src/absl/strings/str_split.h
ByChar
A single character delimiter. `ByChar` is functionally equivalent to a
1-char string within a `ByString` delimiter, but slightly more efficient.
Example:
// Because a char literal is converted to a absl::ByChar,
// the following two splits are equivalent.
std::vector
<std
::string> v1 = absl::StrSplit("a,b,c", ',');
using absl::ByChar;
std::vector
<std
::string> v2 = absl::StrSplit("a,b,c", ByChar(','));
// v[0] == "a", v[1] == "b", v[2] == "c"
`ByChar` is also the default delimiter if a single character is given
as the delimiter to `StrSplit()`. For example, the following calls are
equivalent:
std::vector
<std
::string> v = absl::StrSplit("a-b", '-');
using absl::ByChar;
std::vector
<std
::string> v = absl::StrSplit("a-b", ByChar('-'));
Public Methods
void ByChar (char c)
Defined at line 176 of file ../../third_party/abseil-cpp/src/absl/strings/str_split.h
absl::string_view Find (absl::string_view text, size_t pos)