mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
stringapi: Take strings in escaping functions
This commit is contained in:
@@ -179,10 +179,11 @@ void cmSystemTools::ExpandRegistryValues(std::string& source, KeyWOW64)
|
||||
}
|
||||
#endif
|
||||
|
||||
std::string cmSystemTools::EscapeQuotes(const char* str)
|
||||
std::string cmSystemTools::EscapeQuotes(const std::string& str)
|
||||
{
|
||||
std::string result = "";
|
||||
for(const char* ch = str; *ch != '\0'; ++ch)
|
||||
std::string result;
|
||||
result.reserve(str.size());
|
||||
for(const char* ch = str.c_str(); *ch != '\0'; ++ch)
|
||||
{
|
||||
if(*ch == '"')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user