[#util-Split-0b] = xref:util.adoc[util]::Split :relfileprefix: ../ :mrdocs: `Split` overloads == Synopses Declared in `<util/string.h>` Split a string on every instance of sep, returning a vector. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T = std::span<char const>> std::vector<T> xref:util/Split-09.adoc[Split]( std::span<char const> const& sp, char sep, bool include_sep = false); ---- [.small]#xref:util/Split-09.adoc[_» more..._]# Split a string on any char found in separators, returning a vector. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T = std::span<char const>> std::vector<T> xref:util/Split-00.adoc[Split]( std::span<char const> const& sp, std::string_view separators, bool include_sep = false); ---- [.small]#xref:util/Split-00.adoc[_» more..._]# == Return Value * The pieces of sp between occurrences of sep. * The pieces of sp between separators. == Parameters [cols="1,4"] |=== | Name| Description | *sp* [in] | The input character range to split. | *sep* [in] | Single character that splits the input. | *include_sep* [in] | Whether to include the separator at the end of the left side of the splits. | *separators* [in] | Set of characters, any of which splits the input. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#