MCPcopy Create free account
hub / github.com/catboost/catboost / JoinStrings

Function JoinStrings

util/string/vector.h:70–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69template <class TIter>
70inline 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
85template <class TIter>
86inline TUtf16String JoinStrings(TIter begin, TIter end, const TWtringBuf delim) {

Callers 4

Y_UNIT_TESTFunction · 0.70
JoinVectorIntoStringFunction · 0.70
Y_UNIT_TESTFunction · 0.50
JoinFunction · 0.50

Calls 6

ToWtringFunction · 0.85
ToStringFunction · 0.70
appendMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected