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

Function cmWrap

Source/cmStringAlgorithms.h:278–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276/** Joins wrapped elements of a range with separator into a single string. */
277template <typename Range>
278std::string cmWrap(cm::string_view prefix, Range const& rng,
279 cm::string_view suffix, cm::string_view sep)
280{
281 if (rng.empty()) {
282 return std::string();
283 }
284 return cmCatViews({ { prefix, nullptr },
285 { cmJoin(rng,
286 cmCatViews({ { suffix, nullptr },
287 { sep, nullptr },
288 { prefix, nullptr } })),
289 nullptr },
290 { suffix, nullptr } });
291}
292
293/** Joins wrapped elements of a range with separator into a single string. */
294template <typename Range>

Callers 13

testStringAlgorithmsFunction · 0.85
ProcessMethod · 0.85
WriteMakeRuleMethod · 0.85
InitialPassMethod · 0.85
HandlePackageModeMethod · 0.85
WriteDebugMethod · 0.85
PrintSingleCommandMethod · 0.85
AddISPCTargetFlagsMethod · 0.85
ExecuteCMakeCommandMethod · 0.85

Calls 3

cmCatViewsFunction · 0.85
cmJoinFunction · 0.70
emptyMethod · 0.45

Tested by 1

testStringAlgorithmsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…