8#ifndef GALAXY_UTILS_STRINGUTILS_HPP_
9#define GALAXY_UTILS_STRINGUTILS_HPP_
28 std::vector<std::string>
split(std::string_view input, std::string_view delim)
noexcept;
39 void replace_first(std::string& input, std::string_view to_replace, std::string_view replace_with)
noexcept;
50 void replace_all(std::string& input, std::string_view to_replace, std::string_view replace_with)
noexcept;
61 bool begins_with(
const std::string& input,
const std::string& find)
noexcept;
68 void rtrim(std::string& input)
noexcept;
75 void ltrim(std::string& input)
noexcept;
82 void trim(std::string& input)
noexcept;
void make_single_spaced(std::string &input) noexcept
Make a string single spaced.
void trim(std::string &input) noexcept
Trim both ends of string.
void rtrim(std::string &input) noexcept
Trim string from start.
bool begins_with(const std::string &input, const std::string &find) noexcept
Check if string begins with another string.
std::vector< std::string > split(std::string_view input, std::string_view delim) noexcept
Split a string based on a delimiter.
void replace_all(std::string &input, std::string_view to_replace, std::string_view replace_with) noexcept
Replaces all occurrences of a string.
void replace_first(std::string &input, std::string_view to_replace, std::string_view replace_with) noexcept
Replace first occurrence of a string.
void ltrim(std::string &input) noexcept
Trim string from end.