[#util-Split-0b]
= xref:util.adoc[util]::Split
:relfileprefix: ../
:mrdocs:

`Split` overloads

== Synopses

Declared in `&lt;util&sol;string&period;h&gt;`

Split a string on every instance of sep, returning a vector&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T = std::span&lt;char const&gt;&gt;
std::vector&lt;T&gt;
xref:util/Split-09.adoc[Split](
    std::span&lt;char const&gt; const& sp,
    char sep,
    bool include&lowbar;sep = false);
----

[.small]#xref:util/Split-09.adoc[_» more&period;&period;&period;_]#

Split a string on any char found in separators, returning a vector&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T = std::span&lt;char const&gt;&gt;
std::vector&lt;T&gt;
xref:util/Split-00.adoc[Split](
    std::span&lt;char const&gt; const& sp,
    std::string&lowbar;view separators,
    bool include&lowbar;sep = false);
----

[.small]#xref:util/Split-00.adoc[_» more&period;&period;&period;_]#

== Return Value

* The pieces of sp between occurrences of sep&period;
* The pieces of sp between separators&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sp* [in]
| The input character range to split&period;
| *sep* [in]
| Single character that splits the input&period;
| *include&lowbar;sep* [in]
| Whether to include the separator at the end of the left side of the splits&period;
| *separators* [in]
| Set of characters, any of which splits the input&period;
|===


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