| 68 | |
| 69 | template <class TIter> |
| 70 | inline TString JoinStrings(TIter begin, TIter end, const TStringBuf delim) { |
| 71 | if (begin == end) { |
| 72 | return TString(); |
| 73 | } |
| 74 | |
| 75 | TString result = ToString(*begin); |
| 76 | |
| 77 | for (++begin; begin != end; ++begin) { |
| 78 | result.append(delim); |
| 79 | result.append(ToString(*begin)); |
| 80 | } |
| 81 | |
| 82 | return result; |
| 83 | } |
| 84 | |
| 85 | template <class TIter> |
| 86 | inline TUtf16String JoinStrings(TIter begin, TIter end, const TWtringBuf delim) { |
no test coverage detected