[#util-SplitString-08] = xref:util.adoc[util]::SplitString :relfileprefix: ../ :mrdocs: Split a string on any of the given separator characters, returning strings. == Synopsis Declared in `<util/string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::vector<std::string> SplitString( std::string_view str, std::string_view separators); ---- == Return Value The pieces of str between separators. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *str* | Input string to split. | *separators* | Set of characters, any of which splits the input. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#