god::util#
Note
Declared in <god/util.hpp>
-
namespace util#
Functions
-
std::vector<std::string> split(const std::string &str, const char delim = ' ')#
Split a string given a delimiter.
- Parameters:
str – The string to operate on
delim – The character to split on
- Returns:
A vector of the resulting segment strings
-
std::vector<std::string> split(const std::string &str, std::string delim = " ")#
Split a string given a delimiter.
- Parameters:
str – The string to operate on
delim – The string to split on
- Returns:
A vector of the resulting segment strings
-
std::vector<std::string> split(const char *str, const char delim = ' ')#
Split a string given a delimiter.
- Parameters:
str – The string (const char pointer) to operate on
delim – The character to split on
- Returns:
A vector of the resulting segment strings
-
std::vector<std::string_view> splitsv(std::string_view str, const char delim = ' ')#
Split a string view given a delimiter.
- Parameters:
str – The string view to operate on
delim – The character to split on
- Returns:
A vector of the resulting segment string views
-
std::vector<std::string> split(const std::string &str, const char delim = ' ')#