utils: Pass by value where it makes sense

This commit is contained in:
2021-10-09 00:24:22 +02:00
父節點 b1a8572eb6
當前提交 92e7390056
共有 2 個文件被更改,包括 6 次插入6 次删除

查看文件

@@ -11,11 +11,11 @@
namespace utils
{
std::vector<std::string> split(const std::string &str, char delim);
std::vector<std::string> split(const std::string &str, const std::string &delim);
std::vector<std::string> split(std::string str, char delim);
std::vector<std::string> split(std::string str, const std::string &delim);
std::vector<std::string> split(const std::string &str, std::regex &regex);
std::string urldecode(std::string_view str);
std::string strreplace(const std::string &str, const std::string &search, const std::string &replace);
std::string strreplace(std::string str, const std::string &search, const std::string &replace);
std::string html_xss(std::string_view str);
std::string getenv(const std::string &key);