MCPcopy Index your code
hub / github.com/Kitware/CMake / cmStrCat

Function cmStrCat

Source/cmStringAlgorithms.h:264–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262/** Concatenate string pieces and numbers into a single string. */
263template <typename A, typename B, typename... AV>
264inline std::string cmStrCat(A&& a, B&& b, AV&&... args)
265{
266 static auto const makePair =
267 [](cmAlphaNum const& arg) -> std::pair<cm::string_view, std::string*> {
268 return { arg.View(), arg.RValueString() };
269 };
270
271 return cmCatViews({ makePair(std::forward<A>(a)),
272 makePair(std::forward<B>(b)),
273 makePair(std::forward<AV>(args))... });
274}
275
276/** Joins wrapped elements of a range with separator into a single string. */
277template <typename Range>

Callers 15

operator()Method · 0.70
OutputMarkupLinesMethod · 0.70
ReplayMethod · 0.70
looksLikeSpecialVariableFunction · 0.70
WriteFilesArgumentFunction · 0.70
GetIndexArgFunction · 0.70
HandleGetCommandFunction · 0.70
HandleInsertCommandFunction · 0.70
HandleJoinCommandFunction · 0.70
HandleTransformCommandFunction · 0.70
HandleSortCommandFunction · 0.70

Calls 3

cmCatViewsFunction · 0.85
ViewMethod · 0.80
RValueStringMethod · 0.80

Tested by 15

needToQuoteTestNameFunction · 0.56
OpenOutputFileMethod · 0.56
AddIfExistsMethod · 0.56
CTestFileExistsMethod · 0.56
ProcessStepsMethod · 0.56
StartXMLMethod · 0.56
SetArgsFromPresetMethod · 0.56
RunMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…