[#absl-ByAnyChar]
= xref:absl.adoc[absl]::ByAnyChar
:relfileprefix: ../
:mrdocs:

A delimiter that will match any of the given byte&hyphen;sized characters within its provided string&period;

== Synopsis

Declared in `&lt;absl&sol;strings&sol;str&lowbar;split&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class ByAnyChar;
----

== Description

Note&colon; this delimiter works with single&hyphen;byte string data, but does not work with variable&hyphen;width encodings, such as UTF&hyphen;8&period;

Example&colon;

using absl&colon;&colon;ByAnyChar&semi; std&colon;&colon;vector&lt;std&colon;&colon;string&gt; v &equals; absl&colon;&colon;StrSplit(&quot;a,b&equals;c&quot;, ByAnyChar(&quot;,&equals;&quot;))&semi; &sol;&sol; v&lsqb;0&rsqb;&equals;&equals; &quot;a&quot;, v&lsqb;1&rsqb;&equals;&equals; &quot;b&quot;, v&lsqb;2&rsqb;&equals;&equals; &quot;c&quot;

If `ByAnyChar` is given the empty string, it behaves exactly like `ByString` and matches each individual character in the input string&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:absl/ByAnyChar/2constructor.adoc[`ByAnyChar`]         [.small]#[constructor]#
| Constructs a `ByAnyChar` delimiter matching any character in `sp`&period;
| xref:absl/ByAnyChar/Find.adoc[`Find`] 
| Finds the next matching character in `text` at or after `pos`&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
