A delimiter that will match any of the given byte-sized characters within its provided string.
Declared in <absl/strings/str_split.h>
class ByAnyChar;
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.
| Name | Description |
|---|---|
ByAnyChar [constructor] | Constructs a ByAnyChar delimiter matching any character in sp. |
Find | Finds the next matching character in text at or after pos. |