MCPcopy Create free account
hub / github.com/Kitware/CMake / ExpandCFGIntDir

Method ExpandCFGIntDir

Source/cmGlobalXCodeGenerator.cxx:5299–5317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5297}
5298
5299std::string cmGlobalXCodeGenerator::ExpandCFGIntDir(
5300 std::string const& str, std::string const& config) const
5301{
5302 std::string replace1 = "$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)";
5303 std::string replace2 = "$(CONFIGURATION)";
5304
5305 std::string tmp = str;
5306 for (std::string::size_type i = tmp.find(replace1); i != std::string::npos;
5307 i = tmp.find(replace1, i)) {
5308 tmp.replace(i, replace1.size(), config);
5309 i += config.size();
5310 }
5311 for (std::string::size_type i = tmp.find(replace2); i != std::string::npos;
5312 i = tmp.find(replace2, i)) {
5313 tmp.replace(i, replace2.size(), config);
5314 i += config.size();
5315 }
5316 return tmp;
5317}
5318
5319cmDocumentationEntry cmGlobalXCodeGenerator::GetDocumentation()
5320{

Callers 1

CreateBuildSettingsMethod · 0.95

Calls 2

findMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected