mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 11:49:55 -06:00
VS: moved EscapeForXML function higher up and made static
This commit is contained in:
@@ -1233,6 +1233,18 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(
|
||||
}
|
||||
}
|
||||
|
||||
static std::string cmLocalVisualStudio7GeneratorEscapeForXML(
|
||||
const std::string& s)
|
||||
{
|
||||
std::string ret = s;
|
||||
cmSystemTools::ReplaceString(ret, "&", "&");
|
||||
cmSystemTools::ReplaceString(ret, "\"", """);
|
||||
cmSystemTools::ReplaceString(ret, "<", "<");
|
||||
cmSystemTools::ReplaceString(ret, ">", ">");
|
||||
cmSystemTools::ReplaceString(ret, "\n", "
");
|
||||
return ret;
|
||||
}
|
||||
|
||||
void cmLocalVisualStudio7Generator::OutputDeploymentDebuggerTool(
|
||||
std::ostream& fout, std::string const& config, cmGeneratorTarget* target)
|
||||
{
|
||||
@@ -2056,17 +2068,6 @@ void cmLocalVisualStudio7Generator::WriteVCProjFooter(
|
||||
<< "</VisualStudioProject>\n";
|
||||
}
|
||||
|
||||
std::string cmLocalVisualStudio7GeneratorEscapeForXML(const std::string& s)
|
||||
{
|
||||
std::string ret = s;
|
||||
cmSystemTools::ReplaceString(ret, "&", "&");
|
||||
cmSystemTools::ReplaceString(ret, "\"", """);
|
||||
cmSystemTools::ReplaceString(ret, "<", "<");
|
||||
cmSystemTools::ReplaceString(ret, ">", ">");
|
||||
cmSystemTools::ReplaceString(ret, "\n", "
");
|
||||
return ret;
|
||||
}
|
||||
|
||||
std::string cmLocalVisualStudio7Generator::EscapeForXML(const std::string& s)
|
||||
{
|
||||
return cmLocalVisualStudio7GeneratorEscapeForXML(s);
|
||||
|
||||
Reference in New Issue
Block a user