| 332 | |
| 333 | template <class ITERATOR> |
| 334 | void 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 | |
| 347 | template <class ITERATOR> |
| 348 | string JoinElementsIterator(ITERATOR first, |
no test coverage detected