diff options
author | Frank Goyens <frank.goyens@delem.com> | 2018-06-29 13:39:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-07-06 15:30:23 (GMT) |
commit | 2f4075fa45a180dce701295dbabb131518652221 (patch) | |
tree | 7c170012766044f0d1669f32bfbb731ec614771f /Source/cmLocalVisualStudio7Generator.cxx | |
parent | 5f4af3e556bd266a3f827a297aacbbfb9ddb7d84 (diff) | |
download | CMake-2f4075fa45a180dce701295dbabb131518652221.zip CMake-2f4075fa45a180dce701295dbabb131518652221.tar.gz CMake-2f4075fa45a180dce701295dbabb131518652221.tar.bz2 |
VS: moved EscapeForXML function higher up and made static
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 4b0b66d..2c1a95c 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -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); |