#include <string>
#include <string_view>
#include <vector>
|
|
std::string | fable::join_vector (const std::vector< std::string > &v, std::string_view sep) |
| |
|
std::vector< std::string > | fable::split_string (std::string_view s) |
| |
| std::vector< std::string > | fable::split_string (std::string_view s, std::string_view sep) |
| |
◆ split_string()
| std::vector< std::string > fable::split_string |
( |
std::string_view |
s, |
|
|
std::string_view |
sep |
|
) |
| |
Split string into vector by a separator.
- The separator is stripped from the output.
- Multiple separators result in empty strings.
- An empty separator results in a vector of individual characters.
- Parameters
-
| s | input string view |
| sep | separator to split by |