|
|
@@ -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);
|