apply suggestions
This commit is contained in:
parent
ab73745993
commit
c59009a835
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ extern "C" __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int
|
|||
#define CP_UTF8 65001
|
||||
#endif
|
||||
|
||||
void split_args(std::string args_string, std::vector<std::string> & output_args)
|
||||
void split_args(const std::string & args_string, std::vector<std::string> & output_args)
|
||||
{
|
||||
std::string current_arg = "";
|
||||
bool in_quotes = false;
|
||||
|
@ -65,7 +65,7 @@ void split_args(std::string args_string, std::vector<std::string> & output_args)
|
|||
}
|
||||
}
|
||||
|
||||
std::string unescape(std::string str) {
|
||||
std::string unescape(const std::string & str) {
|
||||
return std::regex_replace(str, std::regex("\\\\n"), "\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue