MCPcopy Create free account
hub / github.com/apache/impala / JoinElementsIterator

Function JoinElementsIterator

be/src/gutil/strings/join.h:334–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332
333template <class ITERATOR>
334void JoinElementsIterator(ITERATOR first,
335 ITERATOR last,
336 StringPiece delim,
337 string* result) {
338 result->clear();
339 for (ITERATOR it = first; it != last; ++it) {
340 if (it != first) {
341 StrAppend(result, delim);
342 }
343 StrAppend(result, *it);
344 }
345}
346
347template <class ITERATOR>
348string JoinElementsIterator(ITERATOR first,

Callers 1

JoinElementsFunction · 0.85

Calls 2

StrAppendFunction · 0.85
clearMethod · 0.65

Tested by

no test coverage detected