A delimiter that will match any of the given byte‐sized characters within its provided string.
Synopsis
Declared in <absl/strings/str_split.h>
class ByAnyChar;
Description
Note: this delimiter works with single‐byte string data, but does not work with variable‐width encodings, such as UTF‐8.
Example:
using absl::ByAnyChar; std::vector<std::string> v = absl::StrSplit("a,b=c", ByAnyChar(",=")); // v[0]== "a", v[1]== "b", v[2]== "c"
If ByAnyChar is given the empty string, it behaves exactly like ByString and matches each individual character in the input string.