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;
40 std::string
replace_first(std::string input, std::string_view to_replace, std::string_view replace_with)
noexcept;
54 std::string
replace_all(std::string input, std::string_view to_replace, std::string_view replace_with)
noexcept;
65 bool begins_with(
const std::string& input,
const std::string& find)
noexcept;
75 std::string
rtrim(std::string input)
noexcept;
85 std::string
ltrim(std::string input)
noexcept;
95 std::string
trim(std::string input)
noexcept;
std::string rtrim(std::string input) noexcept
Trim string from start.
std::string replace_all(std::string input, std::string_view to_replace, std::string_view replace_with) noexcept
Replaces all occurrences of a string.
std::vector< std::string > split(std::string_view input, std::string_view delim) noexcept
Split a string based on a delimiter.
std::string ltrim(std::string input) noexcept
Trim string from end.
bool begins_with(const std::string &input, const std::string &find) noexcept
Check if string begins with another string.
std::string trim(std::string input) noexcept
Trim both ends of string.
std::string make_single_spaced(std::string input) noexcept
Make a string single spaced.
std::string replace_first(std::string input, std::string_view to_replace, std::string_view replace_with) noexcept
Replace first occurrence of a string.