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

A sub&hyphen;string delimiter&period;

== Synopsis

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

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

== Description

If `StrSplit()` is passed a string in place of a `Delimiter` object, the string will be implicitly converted into a `ByString` delimiter&period;

Example&colon;

&sol;&sol; Because a string literal is converted to an `absl&colon;&colon;ByString`, &sol;&sol; the following two splits are equivalent&period;

std&colon;&colon;vector&lt;std&colon;&colon;string&gt; v1 &equals; absl&colon;&colon;StrSplit(&quot;a, b, c&quot;, &quot;, &quot;)&semi;

using absl&colon;&colon;ByString&semi; std&colon;&colon;vector&lt;std&colon;&colon;string&gt; v2 &equals; absl&colon;&colon;StrSplit(&quot;a, b, c&quot;, ByString(&quot;, &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;

== Member Functions

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



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