MCPcopy Create free account
hub / github.com/Icinga/icinga2 / Join

Method Join

lib/base/array.cpp:295–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295Value Array::Join(const Value& separator) const
296{
297 Value result;
298 bool first = true;
299
300 ObjectLock olock(this);
301
302 for (const Value& item : m_Data) {
303 if (first) {
304 first = false;
305 } else {
306 result = result + separator;
307 }
308
309 result = result + item;
310 }
311
312 return result;
313}
314
315Array::Ptr Array::Unique() const
316{

Callers 15

StopMethod · 0.45
StopMethod · 0.45
StopListenerMethod · 0.45
PauseMethod · 0.45
PauseMethod · 0.45
PauseMethod · 0.45
PauseMethod · 0.45
PauseMethod · 0.45
StopMethod · 0.45
ArrayJoinFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected